Correction: in order to correctly handle filenames with spaces in them, the myfile 
script should be:

STANDARDFILE=`/usr/bin/file -b $1 "$2"`
if echo $STANDARDFILE | grep text > /dev/null;
then
   echo $2: `enca -r "$2" 2> /dev/null` text;
else
   echo $2: $STANDARDFILE;
fi

-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

_______________________________________________
Mc mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/mc

Reply via email to