Search Results

Search: Posts Made By: Shell_Life
28,051
Posted By Shell_Life
Indra, Try using " (double quote) before and...
Indra,
Try using " (double quote) before and after $fname:

echo "Please enter a file name"
read fname
if test -f "$fname""
then
echo "$fname exists"
else
echo "$fname doesnot exist"
fi
Showing results 1 to 1 of 1

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