The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 02-04-2002
popo popo is offline
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