How will you list only the empty lines in a file (using
grep)?

Answer Posted / meeran

awk '/^$/' filename

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I run a script on mac?

568


What is bash used for?

577


How to get the first line from a file using just the terminal?

596


Can shell script run on windows?

562


Why is it called a shell?

505






What are the different communication commands available in the shell?

515


How to print the first array element?

550


How do I save a powershell script?

555


What happens when you type ls?

559


How to get the 3rd element/column from each line from a file?

687


What are the various stages of a linux process it passes through?

624


What does it mean to debug a script?

570


write a shell script to check the failed jobs?

3954


What are the 3 standard streams in linux?

571


Where are cowrie shells found?

574