Hi folks,
any idea how to accomplish the following:
Let's say I got a list.txt looking something like this:
Now what I'd like to do is perform a
in order to get the following output:
(The line where the first "column" contains the 0001)
However using the above statement will give me back the following output:
Because of all those 0001 contained in the third "column".
In what way would I have to change my grep to get rid of this problem ?
Best Regards
Thomas
any idea how to accomplish the following:
Let's say I got a list.txt looking something like this:
Code:
0001 A1234 0800
0002 B7365 4000
0003 C3874 0001
0004 D3847 2500
0005 E4027 3900
0006 F3268 0001
Now what I'd like to do is perform a
Code:
cat list.txt | grep 0001
in order to get the following output:
(The line where the first "column" contains the 0001)
Code:
0001 A1234 0800
However using the above statement will give me back the following output:
Code:
0001 A1234 0800
0003 C3874 0001
0006 F3268 0001
Because of all those 0001 contained in the third "column".
In what way would I have to change my grep to get rid of this problem ?
Best Regards
Thomas