From 2b1f5d0d6a680912bfb237ada572dabe5e2fca31 Mon Sep 17 00:00:00 2001 From: emile Date: Tue, 29 Oct 2024 10:54:54 +0100 Subject: [PATCH] remove space EOL and remove first empty line --- padascii2uniascii.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/padascii2uniascii.sh b/padascii2uniascii.sh index c956bd0..d5a5585 100755 --- a/padascii2uniascii.sh +++ b/padascii2uniascii.sh @@ -15,18 +15,20 @@ sed -i '/^\/\/*/d' export.txt # remove empty lines sed -i '/^[[:space:]]*$/d' export.txt -## homogénéiser les pixels vides (points, espaces, tirets) -## ??? - # add tabs to each lines starting by - or # sed -i 's/^[-|#]/\t&/' export.txt # add newline before glyph id 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 sed -z 's/:\n/:/g' export.txt - # 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