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 -->
  #2 (permalink)  
Old 12-27-2003
jayakhanna jayakhanna is offline
Registered User
 

Join Date: Dec 2003
Location: India
Posts: 50
Code:
echo "Enter answer"
read answer

echo $answer | od -b

if [ "$answer" = "" ]
then
        echo "You must enter a file name"
        exit 1
else
        cat $answer
fi
Regards
JK

added code tags for readability --oombera

Last edited by oombera; 02-18-2004 at 10:49 PM.