linuxMaestro
Instructor
This command........
find /home/goog -name *.php -exec fgrep "$year" '{}' \; -print
gives me....
find: paths must precede expression
Usage: find [path...] [expression]
What is the correct syntax for that command?
Logic:
find in /home/goog
all files that are .php
for each php file fgrep "$year"
if line found, print output from fgrep
Thanks!
find /home/goog -name *.php -exec fgrep "$year" '{}' \; -print
gives me....
find: paths must precede expression
Usage: find [path...] [expression]
What is the correct syntax for that command?
Logic:
find in /home/goog
all files that are .php
for each php file fgrep "$year"
if line found, print output from fgrep
Thanks!