listing/searching all the files of a particular user

S

s_g

Guest
Hi All,
Here with I have a query about 'listing/searching all the files of a
particular user which he created in a data base consisting of several
directories.'
For eg.,
In path
/database/src/
we have directories : files/ include/
In path,/database/src/files/ there are files
a.c : created by user A
b.c : created by user B
c.c : created by user A
In path /database/src/include/ there are files
d.c : created by user C
e.c : created by user B
f.c : created by user A

Now, at place, /database/src/ : Is there any command to find all the files
created by a particular user(say,A) recursively.
I know it's not related to Verilog.But,couldn't find a better place.
thanks in advance,
sg
 
A simple pipe of "find" to "grep" should do the trick:

find . -name "*.c" -exec ls -l {} \; | grep USER_NAME

HTH,
Jim (jimwu88NOOOSPAM@yahoo.com remove NOOOSPAM)
http://www.geocities.com/jimwu88/chips


s_g wrote:

Hi All,
Here with I have a query about 'listing/searching all the files of a
particular user which he created in a data base consisting of several
directories.'
For eg.,
In path
/database/src/
we have directories : files/ include/
In path,/database/src/files/ there are files
a.c : created by user A
b.c : created by user B
c.c : created by user A
In path /database/src/include/ there are files
d.c : created by user C
e.c : created by user B
f.c : created by user A

Now, at place, /database/src/ : Is there any command to find all the files
created by a particular user(say,A) recursively.
I know it's not related to Verilog.But,couldn't find a better place.
thanks in advance,
sg
 
Jim Wu wrote:

A simple pipe of "find" to "grep" should do the trick:

find . -name "*.c" -exec ls -l {} \; | grep USER_NAME
Why not:

find . -name \*.c -uses USER_NAME -exec ls -l {} \;
 
Why not:

find . -name \*.c -uses USER_NAME -exec ls -l {} \;
Cool. Just wanted to point out a typo: it's -user instead of -uses.

Thanks,
Jim (jimwu88NOOOSPAM@yahoo.com remove NOOOSPAM)
http://www.geocities.com/jimwu88/chips
 

Welcome to EDABoard.com

Sponsor

Back
Top