Answer by BarBar1234 for Search for lines that do not have certain characters...
If your file name is called Myfile.txt you can run: grep -Ev '[Tt][Tt]|[Hh][Hh]' Myfile.txt | awk '{ gsub("([^[:alnum:]]|^)[[:alnum:]]{4}([[:space:]]|[[:punct:]])"," D ");print $0}' > MyEditedFile.txt
View ArticleSearch for lines that do not have certain characters in a row
I have a news article which I need to edit up a bit. Basically, I need to search for all lines that do not contain characters t and h 2 or more times in a row and replace 4 letter words with character...
View Article
More Pages to Explore .....