Awk Interview Questions
Questions Answers Views Company eMail

Write a command delete all line except first line?

1 1090

Write a command to print zero byte size files?

481

how to run awk command specified in a file?

2 1113

Write a command remove all empty lines?

1 1108

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

510

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

855

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

465

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

480

How to print only blank line of file?

456

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

462

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

472

Write a command to print all line except first line?

453

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

673

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

614

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

754


Post New Awk Questions

Un-Answered Questions { Awk }

What are Regular Expressions in AWK?

843


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

754


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

437


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

855


What is the use of string function gensub(r,s,h [,t])?

1334






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

513


How to generate random numbers in AWK?

858


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

870


What are Trigonometric Functions in AWK?

942


What are Conditional expressions in AWK?

834


What is the use of RSTART, RLENGTH and match ?

1197


What is the use of ERRNO?

1188


Write a command to print all line except first line?

453


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

872


What are Assignment Operators?

817