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

Answer Posted / guest

grep "^$" filename

Is This Answer Correct ?    23 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command

4690


What is an inode block?

575


What are "c" and "b" permission fields of a file?

563


‎What is a shell? · ‎Types of shell · ‎what is shell scripting?

552


What is the conditional statement in shell scripting?

657






What are zombie processes?

569


How do I open a jshell in cmd?

596


how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com

2105


Is powershell a language?

561


What are the disadvantages of shell scripting?

636


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

670


What is mac default shell?

614


What is bash used for?

577


What are the different types of shell scripting?

532


Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.

1707