I'm quite ignorant when it comes to linux commands. I found this line in a post-receive setting in my git production hook.
find /home/app/myapp.com/app/tmp/cache -type f -exec rm {} \;
Inside that /app/tmp/cache folder is a bunch of other subfolders as follow:
models/
views/
persistent/
graphs/
Now, I want that command to exclude the graphs/
subfolder, but not sure how to rewrite that command.
Could anyone help?
find
command will not feed any directory to therm
command, due to the-type f
parameter, which practically tellsfind
to only touch files.