Shell Scripting: delete blank lines from a text file using sed








Delete empty lines using sed:
sed -i.bak '/^\s*$/d' 1.txt



No comments:

Post a Comment