Careful! There needs to be a space between the period and the dash:
That period means "the current directory".
And the switch, -name "*.*", doesn't do much for you. It only guarantees you will skip files that don't have a period in their name. Aren't all the files .html or .asp? Then you could do this. Using
-iname instead of
-name means case insensitive--that's probably a good idea on Windows.
Code:
find . -iname "*.asp" ...
What's "output.txt" doing out there? I think that was intended to collect all the output, but you are missing a redirection operator:
>. Let me add two tweaks (space and '>') to what you've been given:
Code:
find . -name "*.*" -exec egrep -H -n "applet|this|that|other" {} \; > outputfile.txt