On Wed, May 24, 2000 at 11:07:33PM -0400, erik wrote:
> i was wondering if anyone knew of a command or a script that would
> find with the same name on my computer.  i know I coud issue a 
> 'find * | grep <whatever>' but I need to know what <whatever> is. what
> I want is something that only returns value if the is two or more of a
> file.

Would something like sorting the output of find to a file, while using
'basename' to extract just the filename itself. Then use 'uniq' to
create a second file of unique names. Then do a diff on those two?
Would get a list of duplicate filenames. The first part:

 $ find / -name "*" | xargs -n 1 basename | sort > sorted_list

Maybe there is a slicker way.

-- 
Hal B
[EMAIL PROTECTED]
--


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to