Search Results

Search: Posts Made By: popo
62,414
Posted By popo
Thanks all ! I've tried something like that,...
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...
62,414
Posted By popo
How to determine if a file is ASCII?
I'm writing a script that takes a filename as an argument, which determines the "file type" of the file. I want to know if there is any command I can use to determine if a file is ASCII type, thanks...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 09:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy