My input:
1:FAILED + *1 0 (8328832,AR,UNDECLARED)
This is what I expect:
8328832,AR,UNDECLARED
I am trying to find a general regular expression that allows to take any content between two brackets out.
My attempt is
grep -o '[(.*?)]' test.txt > output.txt
but it doesn't match anything.
See Question&Answers more detail:os