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

Answer Posted / junhua

sed -n '/^$/p' file

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of script?

616


Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.

699


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

604


What lives in a shell?

537


determine the output of the following command: echo ${new:-variable}

546






What is the difference between scripting and coding?

538


What are the disadvantages of shell scripting?

638


Why are shell scripts used?

624


What are filters explain sort with all the options available?

932


What is the default ubuntu terminal?

622


Is shell scripting useful?

594


What's the difference between scripting and coding?

595


Write the syntax for "if" conditionals in linux?

595


How to write a function?

593


What is the default shell of solaris?

573