Need to grep for a tab in a file, but don’t know how to do it. Here’s one plan, say I wanted to grep for the number 1 followed by a tab…
grep -E "1`echo -e '\t'`" file.txt
So I’m actually using echo to print the tab special character into my grep string before the shell passes it on to grep. If this makes sense to you it’s time to start worrying…
Advertisement

