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

c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l

3162


What is bourne shell scripting?

543


Given a file find the count of lines containing the word "abc".

968


How to get script name inside a script?

564


How to debug the problems encountered in the shell script/program?

636






Is it possible to substitute "ls" command in the place of "echo" command?

623


What is $1 in shell scripting?

597


What is the use of break command?

594


c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again

5278


How to redirect both standard output and standard error to the same location?

650


What is an sh file?

565


What is inside a seashell?

651


What is a shell environment?

580


How to open a read-only file in the shell?

648


What does .sh file contain?

564