If you don't care about escaped " chars:
perl -pi -e 's/source "(.+?)"/source $1/g'
If you do:
perl -pi -e 's/source "([^"\\]*(?:\\.[^"\\]*)*)"/source $1/g'
In reply to Re: remove a specific character occuring in file using script
by eyepopslikeamosquito
in thread remove a specific character occuring in file using script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |