fgrep -ircl --include=*.{sql} "[--]" * doesn’t seem to be doing the trick. Please help…
Thanks for the responses guys. I am trying to replace the ‘–‘ with ‘#’ and am having a tough time. I created a new question here. If you could help, that had be awesome.
If you want to fgrep all files that end with
.sqlthen useor (note the comma in
{sql,}:If you want to fgrep more than one type of extension, then use something like
As others have already mentioned, the first
--tells fgrep to stop looking for flags and options. The second--is the fixed-string pattern.