Interview questions
Awk interview questions
103 questions. Tap “Show answer” to check yourself.
-
Write a command to print all line except first line?
-
Write a command to rename the files in a directory with "_new" as postfix?
-
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.?
-
Write a command to print the squares of numbers from 1 to 10 using awk command?
-
Write a command to print the second and third line of a file without using nr?
-
Write a command to find the total number of lines in a file without using nr?
-
How to get only zero byte files which are present in the directory?
-
How to display even number of records into one file and odd number of records into another file?
-
How to print only blank line of file?
-
How add a first record and last record to the current file in linux?
-
Write a command to print zero byte size files?
-
How to run awk command specified in a file?
-
Write a command remove all empty lines?
-
Write a command to print the line number before each line?
-
What is the use of ERRNO?
-
What is the use of FIELDWIDTHS?
-
Write a command delete all line except first line?
-
What is the use of SUBSEP?
-
What is the use of CONVFMT?
-
What is the use of RSTART, RLENGTH and match ?
-
What is the use of ARGV ?
-
What is the use of ARGIND?
-
What is the use of FNR?
-
What is the use of OFMT?
-
What are System functions?
-
What is the use of systime function?
-
What is the use of Strftime function?
-
What are AWK patterns?
-
What is the use of string function strtonum(string)?
-
What is the use of string function asort(string,[d])?