KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Im having problems trying to empty a folder in my script. This is working in 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/*: No such file or directory", where is the problem? Im running the script in the same folder as I tried the command.
Tags (comma-separated)
Save Edits
Cancel