Write a command remove all empty lines?



Write a command remove all empty lines?..

Answer / guest

awk '^$ d {print $0}'

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Awk Interview Questions

What is the use of format specifier %d ?

1 Answers  


What is the use of string function substr(string,position) in AWK?

0 Answers  


What is the use of sequence ?

1 Answers  


What is the use of sequence f?

1 Answers  


What is the use of string functiong sub(regex,replacement)?

0 Answers  






What is the use of RSTART, RLENGTH and match ?

0 Answers  


What is the use of numeric function rand ?

1 Answers  


what are divisions main frems

0 Answers  


I have given many interview question(testing),but i don't konw where is the probleam.yet i have no job,in july 2006 i have passed out.can any body tell me how can i improve my self?or any suggestion.

4 Answers  


What is the use of FIELDWIDTHS?

0 Answers  


What is the Basic Structure of AWK program?

1 Answers  


What is the use of string function substr(string,position,max) in AWK?

0 Answers  


Categories