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
Post a Comment