AW: command to display all text files inside a directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There are two ways: 

  one simple:
      cat *

  or a one "more complex" one:
      for i in $(find . -exec file {} \; | grep "text" | sed "s/://" | awk '{print $1}' ); do echo $i; cat $i; done

cu,
 Joe

BTW: You can change every "binary-file" into a text: strings [filename] ...


>Hi ALL
>
>which command is used to display all text files inside a particular directory
>
>Thanks
>
>Kaushal
>
>-- 
>fedora-list mailing list
>fedora-list@xxxxxxxxxx
>To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux