How can I match the outer bracket with grep -


i want extract lines file in form of

t[0-9]-[0-9][.* 

eg:

t1-3[1: 139343400 -- 81586290 --> 220929690] 

i tried grep t[0-9]-[0-9]\\[.* i'm getting following output.

grep: unmatched [ or [^

any suggestions/comments regarding extracting above type of line appreciated.

are sure tried

grep t[0-9]-[0-9]\\[.* 

that should fine. if do

grep t[0-9]-[0-9]\[.* 

then you'll "unmatched [" because "[" converted shell "[".

you can do

grep 't[0-9]-[0-9]\[.*' 

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -