I am using a Bash script to use awk to look for this: (0010,0080) The awk will generally look for any numeric value seperated by a comma in between parenthesis. I have done everything I can think of and still can't get ANY results when I append it to a text file). My regex is:
awk '/\([0-9]{4},[0-9]{4}\)/' dcmResults.txt >> ~/export/"$1"/tagResults.txt
I have done almost every variation of using an escape character for the parenthesis including not using any and I get NO results when appending to a text file. Can someone please tell me what I am doing wrong?
 
                