Remove blank lines with grep May 28, 2022 by IT Nursery I tried grep -v '^$' in Linux and that didn’t work. This file came from a Windows file system. 16 Answers 16