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 -->
#
5
(
permalink
)
02-04-2002
popo
Registered User
Join Date: Feb 2002
Posts: 2
Thanks all !
I've tried something like that, but i think it does not sound good
if file "$1" | grep ascii
then
echo It is an ASCII file
elif file "$1" |grep command
...
I'm now trying all the other method you mentioned. Thanks
popo
View Public Profile
Find all posts by popo