Remove blank lines with grep


Remove blank lines ( new line ) with grep
echo -e "a\n\nb" | grep -v '^ *$'

or

grep -v '^[\s\t]*$' file.txt  > new_file.txt

Vimrc example

 syntax on                   " modo visual/colorido ativo set showmode                " apresenta o modo de utilizacao atual (comm...

Mais vistos