I was wondering if someone could tell me why when I pass in a file name (say "txt.txt') it errors out. (txt.txt is located in the same directory from where I execute my script.)Code:
echo "Enter Name of the first file:"
read file1
echo $file1
if[ ! -f $file1]
echo "Sorry, file does not exist."
exit 1
Sorry if its in the wrong forum section.