Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: Cygwin Subject: Grep for tab character From: Robert Mark Bram Content-Type: text/plain; format=flowed; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Sun, 20 Feb 2005 15:55:35 +1100 Message-ID: User-Agent: Opera7.23/Win32 M2 build 3227 X-IsSubscribed: yes 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/