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,
too.

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...
http://sitescooper.org/tao_regexps.html



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.

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/


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