Awk Interview Questions
Questions Answers Views Company eMail

Write a command to print first and last line using sed command?

563

Write a command to find the sum of bytes (size of file) of all files in a directory?

658

Write a command to print the fields in a text file in reverse order?

633


Post New Awk Questions

Un-Answered Questions { Awk }

How to print only blank line of file?

613


What are Regular Expressions in AWK?

960


Write a command to rename the files in a directory with "_new" as postfix?

888


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

1040


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

976


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.?

769


What is the use of ARGV ?

1171


What is the use of PRINTF?

997


what are divisions main frems

1692


What is the use of Strftime function?

1219


What are the Autoincrement and Autodecrement Operators?

983


What are Dynamic Variables?

1020


What is the use of FNR?

1215


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

1053


Usage of And/Or/Not operators in AWK?

995