mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-28 07:23:07 +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
|