> > Additional question: is it possible to use "\t" with grep? It doesn't
> > seems to work...

> You can look at two different examples using tab in grep expressions
> http://cvs.sourceforge.net/viewcvs.py/eciadsl/usermode/eciadsl-start?rev=1.4.2.2&view=markup
> 
> http://cvs.sourceforge.net/viewcvs.py/ipcop/ipcop/src/rc.d/rc.eciadsl?rev=1.4.2.12&view=markup


The first example is basically wrong. It boils down to:

grep -E "[ \t]" file

This is not looking for space or tab but for space, backslash or "t".
As already stated, grep does not support "\t" for tab. Use:

grep "[[:blank:]]" file

instead if you dont want to work with a real tab character. [:blank:] is
exactly space and tab.


Rob

Reply via email to