5

Grep/Awk on 1st 2 Letters in 2nd Column of File

view full story
linux-howto

http://www.unix.com – Hi everyone. I need to change a script (ksh) so that it will grep on the 1st 2 letters in the second column of a 5 column file such as this one: Code: 192.168.1.1  CAXY0_123  10ABFL000001  #  Comment 192.168.1.2  CAYZ0_123  10ABTX000002  #  Comment 192.168.2.1  FLXY0_123  11ABCA000001  #  Comment 192.168.2.2  FLYZ0_123  11ABTX000002  #  Comment 192.168.3.1  TXXY0_123  12ABCA000001  #  Comment 192.168.3.2  TXYZ0_123  12ABFL000002  #  Comment ...an (HowTos)