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

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

0 Answers  


Write a command to print all line except first line?

0 Answers  


How to print only blank line of file?

0 Answers  


What is ORS in AWK?

1 Answers  


What is the use of string function asort(string,[d])?

0 Answers  






Usage of And/Or/Not operators in AWK?

0 Answers  


In the text file, some lines are delimited by colon and some are delimited by space. Write a command to print the third field of each line.?

0 Answers  


What is the use of Strftime function?

0 Answers  


What is the use of PRINTF?

0 Answers  


What is the use of format specifier %x ?

1 Answers  


What is the use of numeric function int ?

1 Answers  


What is NF in AWK?

1 Answers  


Categories