Write  awk script to  print   field  2,3,4 and 6 from  test.txt  which contain pattern "Unix". Compulsory  for   all  students

command:-

awk '{ if($2 == "unix" || $3 == "unix" || $4 == "unix" || $5 == "unix" || $6 == "unix")  print $2,$3,$4,$5,$6; } ' test.txt



Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post