Write a command delete all line except first line?



Write a command delete all line except first line?..

Answer / rajesh

awk '!1 d {print $0}'

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Awk Interview Questions

What is NF in AWK?

1 Answers  


What is the use of numeric function sqrt ?

1 Answers  


What is the use of sequence ?

1 Answers  


How to get only zero byte files which are present in the directory?

0 Answers  


What is the use of numeric function rand ?

1 Answers  






What is the use of CONVFMT?

0 Answers  


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

0 Answers  


What is the use of string function tolower(string)?

0 Answers  


How add a first record and last record to the current file in linux?

0 Answers  


how to run awk command specified in a file?

2 Answers  


How to execute an AWK script?

0 Answers   Accenture,


Which shell to use with AWK?

0 Answers  


Categories