I have a regular expression with a backreference. How can use it in a bash script?
Such as I want to print what matches to (.*)
grep -E "CONSTRAINT \`(.*)\` FOREIGN KEY" temp.txt
If apply it to
CONSTRAINT `fk_dm` FOREIGN KEY
I want to output
fk_dm