2
I need to make a daily cleanup in a download directory.
I have saw this question and tested the answer
rm !("test 1"|"test 4")
It work great, but require to have cd to the directory before. Since my app need to be two direcltory higher in many part, I d like to don t have to make something like
cd /app/download
rm !("test 1"|"test 4")
cd ../..
I have tried
rm !("./app/download/test 1"|"./app/download/test 4")
But well, it delete the content of the higher directory, not download/