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

Is shell script a programming language?

558


What is an sh file?

547


How do I edit a .sh file?

607


What is bash coding?

487


How do I run a shell script in powershell?

545






What is the equivalent of a file shortcut that we have a window on a linux system?

589


What command needs to be used to take the backup?

521


What is awk in shell scripting?

536


How will you connect to a database server from linux?

549


What is the first line in every perl script called?

538


What can scripts do?

654


What is the syntax of while loop in shell scripting?

562


What is option in shell script?

550


What does $1 mean in bash?

604


write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

3578