I'm having trouble trying to unload a folder in a script.
This works on my command line:
rm -r Folder1/Folder2/*
But if in my script I do this:
DIR="Folder1/Folder2/" rm -r "$DIR*"
It says: "rm: Folder1 / Folder2 / *: There is no such file or directory", where is the problem?
Im running the script in the same folder in which I tried to execute the command.
source share