I have a script that searches through a file and displays the results.
However there is a problem for example when i search 1 the following results are given:
1 B C
11 D E
12 B C
13 D E
When i search for 1
, I only want it to show the 1
not also
11 D E
12 B C
13 D E
Is this possible?
echo "$@" | sed 's/[[:space:]]/.*/g' | xargs -Ifile grep -Ei 'file' text.txt