I was trying to do a grep on a set of files, looking for tabs at the end of lines. So I did as you would probably do, ie
CODE
grep -R "\t$" *
Right? Wrong. For some reason grep just ignores the \ and looks for the letter "t" at the end of lines. Weird, eh?
After some searching I found out the answer is to not use \t but to use Ctrl-v and then the <tab> key to put the tab character directly in the command. Odd. So it looks like:
CODE
grep -R " $" *
where the tab character is inserted as Ctrl-v and then Tab.Anyway, maybe it's also useful for other cases where you want to put tabs into commands, can't think of any at the moment but maybe there are some...
[moved from TSC,K&P by tyme]