Lets say,
I have a few records
EX:
10 20 account
10 20 account_K
I need to eliminate whtever records with _K
Please help..
Thanks
Lets say,
I have a few records
EX:
10 20 account
10 20 account_K
I need to eliminate whtever records with _K
Please help..
Thanks
$ cat sample2.txt
AB DFDF GFGF BB DDFDFDDG ABC 1234
BB WKSK 12SD AA SHJDSDDS DEF 1345
GH SDSD 7878 99 DHFDFDFG ABC 3434
$ cat sample2.txt | grep -v "5$"
AB DFDF GFGF BB DDFDFDDG ABC 1234
GH SDSD 7878 99 DHFDFDFG ABC 3434
why to use cat
grep -v "5$" < sample2.txt OR grep -v "5$" sample2.txt
Will also work