The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: Unix script
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 09-01-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
The -ls option to find (if available) prints the date, size, and owner of each file in addition to the file name, just like the ls command. (You can use -exec ls -l {} \; as a workaround if your find doesn't have the -ls option.)


Code:
find /path/to/directory -name '*in' -ls

Like Annihilannic already remarked, file names are unique by definition.