#!/bin/bash
files_path="/Volumes/HDD/Bogdan Data/"
rm -r "$files_path/files/*"
I'm getting an error that path cannot be found, probably due to the space character in the folder name. How should I approach this?
#!/bin/bash
files_path="/Volumes/HDD/Bogdan Data/"
rm -r "$files_path/files/*"
I'm getting an error that path cannot be found, probably due to the space character in the folder name. How should I approach this?
$files_path
needs to be quoted, but the *
glob must not be.
rm -r "$files_path"/files/*