The UNIX and Linux Forums  


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




Thread: using find
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 09-30-2006
srikanthus2002's Avatar
srikanthus2002 srikanthus2002 is offline
Registered User
  
 

Join Date: Sep 2006
Location: Can u guess...!
Posts: 160
this command gives files
[sri]$ find . -type f -exec file {} \; | grep 'ASCII' | awk '{print $1}'
./y:
./file_name:


but this gives four files
[sri]$ find . -type f -exec file {} \; | grep 'ASCII' | awk '{print $1}' | ls -l
total 16
-rw-rw-r-- 1 upl upl 6 Sep 28 13:26 file_name
-rwxrwxrwx 1 upl upl 900 Sep 29 15:40 tt
-rwxrwxrwx 1 upl upl 79 Sep 29 16:32 x
-rwxr-xr-x 1 upl upl 74 Sep 30 15:31 y

pls check