Grep - Remove blank lines
Remove blank lines from a file using grep and save output to new file:
grep . old.filename.txt > new.filename.txt
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.