asd1234qwerty
Programmer
Hi, i have the following code, but when i enter the word to add, the following error appears line 6: $file: ambiguous redirect. Does anyone know why?
echo "enter file"
read file
echo "enter word to add"
read word
echo "$word" >> $file
Thanks for your help.
echo "enter file"
read file
echo "enter word to add"
read word
echo "$word" >> $file
Thanks for your help.