Re: search string in column ans delete line
| Newsgroups | gmane.editors.sed.user |
|---|---|
| Message-ID | <[email protected]> |
On 2016-03-22 12:17, Tim Chase wrote: > On 2016-03-22 16:19, MOKRANI Rachid wrote: > > Do you have a simple proposal with sed / awk. > > > > if I find alphabetic characters (a-z A-Z) in column 7 I want to > > delete the line. > > awk -F\; '$2 !~ /[a-zA-Z]/' < in.txt > out.txt and of course I mean "$7" because you want to test the 7th column, instead of the "$2" I used when testing it. :-P -tkc