Awk Interview Questions
Questions Answers Views Company eMail

Write a command delete all line except first line?

1 1739

Write a command to print zero byte size files?

620

how to run awk command specified in a file?

2 1875

Write a command remove all empty lines?

1 1597

Write a command to print the line number before each line?

696

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

1109

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

615

How to display even number of records into one file and odd number of records into another file?

624

How to print only blank line of file?

640

Write a command to print the second and third line of a file without using nr?

601

Write a command to find the total number of lines in a file without using nr?

641

Write a command to print all line except first line?

578

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

918

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

785

Write a command to print the squares of numbers from 1 to 10 using awk command?

940


Post New Awk Questions

Un-Answered Questions { Awk }

What is the use of PRINTF?

1012


What is the use of string function length(string) in AWK?

966


What are the Autoincrement and Autodecrement Operators?

999


Write a command to print the squares of numbers from 1 to 10 using awk command?

940


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

999


What is the use of Strftime function?

1244


What is the use of FIELDWIDTHS?

1173


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

1118


What are Unary arithmetic operators?

1001


What are Conditional expressions in AWK?

1013


What are Regular Expressions in AWK?

976


Write a command to find the total number of lines in a file without using nr?

641


What are AWK Built-in Variables?

993


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

1096


How to generate random numbers in AWK?

1033