UPDATE:
This is what works!
fgrep -ircl --include=*.sql -- -- *
I have different SQL files with "-" comments, and we migrated the latest version of MySQL, and she hates these comments. I want to replace - #.
I am looking for a recursive, one-line replacement replacer.
This is what I have:
perl -p -i -e 's/--/# /g'` ``fgrep -- -- *
Example .sql file:
use myDB;
I get the following error:
Unrecognized switch: --did (-h will show the actual parameters).
ps: fgrep, skipping the 2 dash, was just discussed here if you are interested.
Any help is appreciated.
source
share