|
|
Need Help with find command
hi ,
how to use find command to find all source files(*.c and *.h" ) in a
directory which have
write permission.
Thanx in Advance
Mavinkuli
|
|
0
|
|
|
|
Reply
|
boss_bhat (11)
|
3/6/2006 10:06:31 AM |
|
"Mavinkuli" <boss_bhat@yahoo.co.in> writes:
> how to use find command to find all source files(*.c and *.h" ) in a
> directory which have
> write permission.
"man find" may help, with "man <put here your shell>" if you don't
know how to prevent wildcard expansion in a shell command.
--
Maurizio Loreti http://www.pd.infn.it/~loreti/mlo.html
Dept. of Physics, Univ. of Padova, Italy ROT13: ybergv@cq.vasa.vg
|
|
0
|
|
|
|
Reply
|
Maurizio
|
3/6/2006 10:24:04 AM
|
|
Hello,
> how to use find command to find all source files(*.c and *.h" ) in a
> directory which have
> write permission.
Assume that "dir" is the directory where you want to search, it should
be something like:
$ find dir -perm +222 -name "*.c" -o -name "*.h"
HTH,
Loic.
|
|
0
|
|
|
|
Reply
|
loic
|
3/6/2006 2:36:42 PM
|
|
|
2 Replies
110 Views
(page loaded in 0.05 seconds)
|
|
|
|
|
|
|
|
|