All,
I have a simple if statement that I am trying to get to work and my quotes adn brackets are not working. I know someone will think I am struggling with a simple thing but sometimes you have ask for help
--------cut------------
if `file $file_name | grep ascii`
then
echo "ASCII"
else
echo "Not ASCII"
fi
-------cut-------------
I can never get this to work, it always comes back false or syntax error depending on how I write the if.
Thanks in advace.
I have a simple if statement that I am trying to get to work and my quotes adn brackets are not working. I know someone will think I am struggling with a simple thing but sometimes you have ask for help
--------cut------------
if `file $file_name | grep ascii`
then
echo "ASCII"
else
echo "Not ASCII"
fi
-------cut-------------
I can never get this to work, it always comes back false or syntax error depending on how I write the if.
Thanks in advace.