This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Grep for tab character
- From: Robert Mark Bram <relaxedrob at optusnet dot com dot au>
- To: Cygwin <cygwin at cygwin dot com>
- Date: Sun, 20 Feb 2005 15:55:35 +1100
- Subject: Grep for tab character
Hi All!
I cannot seem to use grep for tabs. Here is what I have tried..
This shows that there are tabs in the file test.txt:
Robert Mark Bram - /tmp
$cat test.txt | sed s/[\\t]/tab/g
tabdr
tabHow
tabHow
tabHow
tabHow
How
How
And these lines show how I am trying to grep for tab, but with no luck!
Robert Mark Bram - /tmp
$grep -e [\\t]How test.txt
Robert Mark Bram - /tmp
$grep -e [\t]How test.txt
Robert Mark Bram - /tmp
$grep -e "[\t]How" test.txt
Robert Mark Bram - /tmp
$grep -e "[\\t]How" test.txt
Robert Mark Bram - /tmp
$
Am I missig something? Or is it cygwin grep?
Any advice would be most appreciated!
Rob
:)
--
Robert Mark Bram
http://phd.netcomp.monash.edu.au/RobertMarkBram/default.asp
B.Comp.(Systems Development/Business Systems)
B.Net.Comp.(Hons)
Doctor of Philosophy Student
School of Network Computing
Faculty of Information Technology
Monash University
Peninsula Campus
McMahons Rd
Frankston, VIC 3199
AUSTRALIA
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/