Re: search string in column ans delete line
| Newsgroups | gmane.editors.sed.user |
|---|---|
| Message-ID | <[email protected]> |
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. sounds like you want something like awk -F\; '$2 !~ /[a-zA-Z]/' < in.txt > out.txt Though you'll hit a snag if any of the quoted fields can contain a delimiting ";" character. -tkc