SUMMARY grep specific column

From: Muhammad Mughal <muhammad_at_uac.edu.au>
Date: Mon Nov 26 2001 - 18:19:45 EST
Special thanks to Andy Bach, Ray Brownrig, all others say use combination
of cut and awk.

> I want to grep from file the specific column ...say
>       grep col78 "Y" *....
 and output the whole line.


grep '^.\{columnno\}criteria' filename
ie grep '^.\{18\}Y' filename

Regards



_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon Nov 26 17:23:22 2001

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:29 EST