delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/19/23:54:57

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <cygwin AT cygwin DOT com>
Subject: Grep for tab character
From: Robert Mark Bram <relaxedrob AT optusnet DOT com DOT au>
MIME-Version: 1.0
Date: Sun, 20 Feb 2005 15:55:35 +1100
Message-ID: <opsmhbyxl1ov81ve@mail.optusnet.com.au>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019