Main Menu

Search

LINUX: How to Remove/Ignore/Not Display Blank Lines in A File Using grep command

Below grep command can be used for removing/ignoring and not displaying blank lines in a file.
grep -v -e '^$'  <filename>

Products to which Article Applies

All Linux Operating Systems




tarun boyella

No comments:

Post a Comment