remove space EOL and remove first empty line
This commit is contained in:
parent
d5ea4c1fc3
commit
2b1f5d0d6a
@ -15,18 +15,20 @@ sed -i '/^\/\/*/d' export.txt
|
|||||||
# remove empty lines
|
# remove empty lines
|
||||||
sed -i '/^[[:space:]]*$/d' export.txt
|
sed -i '/^[[:space:]]*$/d' export.txt
|
||||||
|
|
||||||
## homogénéiser les pixels vides (points, espaces, tirets)
|
|
||||||
## ???
|
|
||||||
|
|
||||||
# add tabs to each lines starting by - or #
|
# add tabs to each lines starting by - or #
|
||||||
sed -i 's/^[-|#]/\t&/' export.txt
|
sed -i 's/^[-|#]/\t&/' export.txt
|
||||||
|
|
||||||
# add newline before glyph id
|
# add newline before glyph id
|
||||||
sed -i '/:$/i\ ' export.txt
|
sed -i '/:$/i\ ' export.txt
|
||||||
|
|
||||||
|
# remove first line
|
||||||
|
sed -i '1d' export.txt
|
||||||
|
|
||||||
|
# remove space EOL
|
||||||
|
sed -i 's/\s*$//' export.txt
|
||||||
|
|
||||||
# remove \n after glyph id
|
# remove \n after glyph id
|
||||||
sed -z 's/:\n/:/g' export.txt
|
sed -z 's/:\n/:/g' export.txt
|
||||||
|
|
||||||
|
|
||||||
# the output should now be ready to use with the unifont utility "hexdraw"
|
# the output should now be ready to use with the unifont utility "hexdraw"
|
||||||
# hexdraw:convert a GNU Unifont .hex file to and from an ASCII text file
|
# hexdraw:convert a GNU Unifont .hex file to and from an ASCII text file
|
||||||
|
Loading…
Reference in New Issue
Block a user