Sorry for my numpty questions but here goes:
Here is what i thought would work to search all directories from ./Code:
find ./ -name *.c | xargs grep -n "$1"
but i get the error:
find: paths must precede expression
Usage: find [-H] [-L] [-P] [path...] [expression]
Surely the ./ is preceding the expressions ?
Also, if i do
it prints out all the files and then the *.c ones.Code:
find . *.c
Any ideas ?
PS Mandrake 10.1