I am trying to ignore the order of the words and searching for the line in one file which has below pattern for example : My Name is ABC.
Now I want to change the sequence of words in the same sentence as below : ABC is my name.
Can someone please help me on how should I find this line in linux, if the order/sequence of the words keeps changing ?
Thanks in advance.
grep
s like this:grep -i ABC infile | grep -i my | grep -i is | grep -i name
(The option-i
to ignore a change in case when words are at the beginning of the sentence). – Philippos Jun 14 '21 at 06:04-w
on those so that words containing these as substrings aren't matched, such assister
– Chris Davies Jun 14 '21 at 06:54