AW: command to display all text files inside a directory
joe at illegal-access.de
joe at illegal-access.de
Mon Jun 26 10:42:02 UTC 2006
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 at redhat.com
>To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
More information about the fedora-list
mailing list