My Tech Notes
Search This Blog
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment