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
How can I send a mail with a compressed file as an attachment?
What are the different variables present in linux shell?
Is shell script a programming language?
I have 2 files and I want to print the records which are common to both.
What does .sh file contain?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
How will you copy a file from one machine to other?
Calculate a real number calculation directly from the terminal and not any shell script.
How will you emulate wc –l using awk?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
What are the different types of variables used in shell script?
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
What is wc in shell script?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
Is scripting and coding the same thing?