mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-12-01 00:43:08 +01:00
22 lines
199 B
Sed
Executable File
22 lines
199 B
Sed
Executable File
#!/bin/sed -f
|
|
|
|
# Add header
|
|
1i\
|
|
.TS\
|
|
allbox;\
|
|
lb lb\
|
|
l li .\
|
|
File type\tPrograms
|
|
|
|
# Substitute '-' with '\-'
|
|
:a
|
|
s/\(\t.*[^\\]\)-/\1\\-/
|
|
ta
|
|
|
|
# Format rows
|
|
s/\t/&T{\n/; s/$/\nT}/
|
|
|
|
# Add footer
|
|
$a\
|
|
.TE
|