Answer the question
In order to leave comments, you need to log in
How to execute the abc command and redirect the output of the error stream to the file error.txt, as well as display the error stream on the screen without empty lines?
The output of errors to a file is understandable:
abc | abc 2>error.txt
But I can’t figure out how to make the output in the terminal without empty lines.
Tried
sed '${/^$/d;}'
and grep -v '^$'
doesn't work.
Please help, it is advisable to poke where to read (except for man in bourgeois: ()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question