The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
How to determine if a file is ASCII?
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
How to determine if a file is ASCII?
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
02-04-2002
witt
Guest
Posts: n/a
Popo,
You can try this :
for i in `find . -xdev -type f`
do
file $i | egrep -i "text|script" | awk -F\: '{ print $1 }'
done
Witt
witt