I'm using this linux grep command
grep -Po 'uc-download-link" [^>]* href="\K[^"]*' | sed 's/\&/\&/g'
that fails on macOS
.
In this command, grep -P
enables PCRE syntax, while grep -o
emits only matched text - see here.
Does macOs grep support PCRE
.