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
c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l
What is bourne shell scripting?
Given a file find the count of lines containing the word "abc".
How to get script name inside a script?
How to debug the problems encountered in the shell script/program?
Is it possible to substitute "ls" command in the place of "echo" command?
What is $1 in shell scripting?
What is the use of break command?
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
How to redirect both standard output and standard error to the same location?
What is an sh file?
What is inside a seashell?
What is a shell environment?
How to open a read-only file in the shell?
What does .sh file contain?