Hi
I would like to remove empty lines in a text fil, but not the other line breakes
ex. - a text file like this
./cat text.txt
test1
test3
test5
I want the output to be
test1
test3
test5
I've tryede something like this
tr '\012' ' ' < ./text.txt
but this removes all the line breakes and put everythin into one line.
/Larshg
I would like to remove empty lines in a text fil, but not the other line breakes
ex. - a text file like this
./cat text.txt
test1
test3
test5
I want the output to be
test1
test3
test5
I've tryede something like this
tr '\012' ' ' < ./text.txt
but this removes all the line breakes and put everythin into one line.
/Larshg