OK I'm new to this...curious why I can't create folders via script...
15:18 ~$ cat myscript
/bin/bash
clear
echo "Enter a type of fruit:"
read fruit
mkdir /home/pistolaNola/fruit/$fruit
touch /home/pistolaNola/fruit/$fruit/$fruit
echo "The file and directory $fruit have been created in /home/pistolaNola/fruit."
./myscript
Enter a type of fruit:
apple
mkdir: cannot create directory ‘/home/pistolaNola/fruit/apple’: No such file or directory
touch: cannot touch ‘/home/pistolaNola/fruit/apple/apple’: No such file or directory
The file and directory apple have been created in /home/pistolaNola/fruit.
thanks in advance for any advice offered! I'm working on learning UNIX and ditching windows altogether