I want to replace all include('./ in a set of files with include('. I am trying to use awk as follows:
awk '{gsub("include\('"'"'./", "include\('"'"'", $0); print > FILENAME}' *.php
It throws me this error.
awk: (FILENAME=xyz.php FNR=1) fatal: Unmatched ( or \(: /include('.//
Any help would be appreciated.
@OP, you can try using octal code for the single quote(
\047) and forward slash(\057), eg