[Nottingham] how does one grep for tabs?

Michael Erskine msemtd at yahoo.co.uk
Wed Feb 1 13:11:30 GMT 2006


On Tuesday 31 January 2006 16:04, Michael Erskine wrote:
> I'm searching for files that contain tab characters (ASCII 0x09, Ctrl-I --
> so that I can eradicate them with expand(1)! ) but I can't use interactive
> bash to grep(1) for them because it won't let me type a tab! I found a
> roundabout way by avoiding the use of interactive bash but I'm interested
> in how others might solve this conundrum.

Thanks all, most enlightening (and saved me reading the man page) yes, it's 
the CTRL-V magic that I needed. Interestingly, I also expected a '\t' to work 
within a regex as per Perl but it wouldn't have it! I even found out the grep 
-P on my machines is unsupported!

    grep: The -P option is not supported

...how un-nice!

Regards,
Michael Erskine.

-- 
* knghtbrd can already envision:  "Subject: [INTENT TO PREPARE TO PROPOSE
   FILING OF BUG REPORT] Typos in the policy document"

		
___________________________________________________________ 
NEW Yahoo! Cars - sell your car and browse thousands of new and used cars online! http://uk.cars.yahoo.com/



More information about the Nottingham mailing list