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



In the text file, some lines are delimited by colon and some are delimited by space. Write a command..

Answer / Arun Kumar Chaturvedi

awk -F':| ' '{print $3}'

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Awk Interview Questions

EPFO 2009 result has come or not which is held in sep 2009, pls told me, I have ever asked you.

1 Answers  


What is the use of numeric function sin ?

1 Answers  


What is the use of ARGIND?

1 Answers  


What is the use of numeric function int ?

1 Answers  


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

1 Answers  


What are Trigonometric Functions in AWK?

1 Answers  


What are Associative Arrays?

1 Answers  


What is NF in AWK?

1 Answers  


What are Conditional expressions in AWK?

1 Answers  


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

1 Answers  


What is ORS in AWK?

1 Answers  


What is the use of format specifier %d ?

1 Answers  


Categories