In order to remove leading
spaces and tabs on Linux, i use following standard sed command :
but.... on AIX \t doesn't work ...
In order to run it on AIX, replace \t by Ctrl+v and tab (key tab)
cat aaa |sed 's/[ \t]*#/#/g'
but.... on AIX \t doesn't work ...
In order to run it on AIX, replace \t by Ctrl+v and tab (key tab)
cat aaaa |sed 's/^[ ]*#/#/g'
Aucun commentaire:
Enregistrer un commentaire