|
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
|