This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Grep for tab character

Hi Christopher,

Thank you for your response!

How about just using the actual tab character? I don't see any indication that
grep is supposed to treat '\t' specially and it seems to behave that way on linux,

I have read in many places that \t is a metacharacter for tab in regular expressions - but maybe that's only for sed, perl, awk etc...

What's wrong with just using tab?

Because that starts up auto-complete. In other words, I don't know how to insert a literal tab into a command line.

But I do not like that idea for scripts either - it can be difficult to visually discriminate a tab from a space character, which can too easily lead to errors.


-- Robert Mark Bram 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

-- Unsubscribe info: Problem reports: Documentation: FAQ:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]