Awk Interview Questions
Questions Answers Views Company eMail

Write a command delete all line except first line?

1 1717

Write a command to print zero byte size files?

596

how to run awk command specified in a file?

2 1841

Write a command remove all empty lines?

1 1577

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

678

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

1095

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

596

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

615

How to print only blank line of file?

613

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

586

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

628

Write a command to print all line except first line?

565

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

888

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

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

926


Post New Awk Questions

Un-Answered Questions { Awk }

How to print only blank line of file?

613


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

563


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

586


What are Dynamic Variables?

1020


What is the use of ARGV ?

1173


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

944


What is the use of OFMT?

1229


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

628


How to exit from an awk script using the exit command?

1011


What are Conditional expressions in AWK?

983


what are divisions main frems

1692


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

888


Usage of And/Or/Not operators in AWK?

995


What are System functions?

1131


How to generate random numbers in AWK?

1013