find files by OWNER

i have written a script in which i have to go to a dir and search there for files belonging to owner pipe and then delete them

Can anyone tell me how to find files by owner pipe. below some of the files belonging to owner pipe

-rw------- 1 pipe pipe 163840 Mar 18 2008 Exaaa75848
-rw------- 1 pipe pipe 163840 Mar 18 2008 Exaaa52506
-rw------- 1 pipe pipe 163840 Mar 18 2008 Exaaa32542
-rw------- 1 pipe pipe 163840 Mar 18 2008 Exaaa32540
-rw------- 1 pipe pipe 163840 Mar 18 2008 Exaaa47198
-rw------- 1 pipe pipe 196608 Mar 18 2008 Exaaa30084

----------------------------------------------------------------------

How to get them using find command based on owner pipe ?

thanks in advance

You can use the -user option of find with the -exec command, check the manpage of find.

Regards

Hello,

I have a problem, I need to find files in folder by owner, not using find command at all and ls -R parameter. Thanx a lot.

Best regarts

Can you use an ls -l to get a listing of files, then an awk command to only select on the appropprate column?

Why the restrictions on certain approaches?

Your original request:

Your follow-up:

I have a task to write a shell script that finds files in folders by selected owner, without using find command at all and ls -R parameter. I can use ls -l command but I can't use sed,awk,perl as well.

> ls -l | tr -s " " | grep "^-" | cut -d" " -f3,9- | grep "^pipe" | cut -d" " -f2-

where the word pipe is the file owner.

sounds like homework to me.

One more question. How can I look in subfolders for searching files with

> ls -l | tr -s " " | grep "^-" | cut -d" " -f3,9- | grep "^pipe" | cut -d" " -f2-
For example I have folder Home and i need to search selected files not only in Home folder but also in it's subfolders. I need to make analog to find command...

Thanx