Awk Interview Questions
Questions Answers Views Company eMail

Write a command delete all line except first line?

1 1657

Write a command to print zero byte size files?

558

how to run awk command specified in a file?

2 1738

Write a command remove all empty lines?

1 1480

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

612

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

999

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

548

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

570

How to print only blank line of file?

544

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

538

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

570

Write a command to print all line except first line?

535

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

762

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

715

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

857


Post New Awk Questions

Un-Answered Questions { Awk }

What are Conditional expressions in AWK?

912


What is the use of SUBSEP?

1168


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

570


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

1020


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

514






What are the Autoincrement and Autodecrement Operators?

905


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

956


what are divisions main frems

1629


How do you Explicit File output?

922


What are Unary arithmetic operators?

941


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

988


How to execute an AWK script?

914


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

570


What is the use of string function index(string,search) in AWK?

926


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

950