Re: grepping for tabs

2004-04-10 Thread Bob Proulx
William Ballard wrote: > $ grep '\t8' 1 > $ grep "`echo -e '\t'`8" 1 > host cookie 8 www.execsoft.co.uk > > I could have sworn that shells natively understood \t as tab, > but apparently the only way to pass one to a shell is with > `echo -e '\t'`, or `echo -e t`. Yes, a common shell

Re: grepping for tabs

2004-04-10 Thread s. keeling
Incoming from dircha: > William Ballard wrote: > >I searched google a bit, nothing jumped out: > > > >Suppose the file '1' words seperated by tabs: > >host cookie 8 www.execsoft.co.uk > > > >$ grep '\b8' 1 > >host cookie 8 www.execsoft.co.uk > >$ grep '\t8' 1 > >$ grep "`echo -e '\t'`

Re: grepping for tabs

2004-04-10 Thread dircha
William Ballard wrote: I searched google a bit, nothing jumped out: Suppose the file '1' words seperated by tabs: hostcookie 8 www.execsoft.co.uk $ grep '\b8' 1 hostcookie 8 www.execsoft.co.uk $ grep '\t8' 1 $ grep "`echo -e '\t'`8" 1 hostcookie 8 www.execsoft.co.u

grepping for tabs

2004-04-10 Thread William Ballard
I searched google a bit, nothing jumped out: Suppose the file '1' words seperated by tabs: hostcookie 8 www.execsoft.co.uk $ grep '\b8' 1 hostcookie 8 www.execsoft.co.uk $ grep '\t8' 1 $ grep "`echo -e '\t'`8" 1 hostcookie 8 www.execsoft.co.uk I could have sworn