Thanks SamBones.
I realised the issue with 14 days exactly after my first trial a few weeks ago. As it turns out, I meant to use -mtime -14, but was originally using -newermm <testFile> which I was touch -t to 14 days ago. But this then presented issues with month boundaries etc.
Thanks for...
Thanks dickiebird. Unfortunately this didn't work but thanks for giving me a little hope.
SamBones, your method is the one that works. I had been trying all sorts of things including xargs echo \" etc. I should have realised sed would do the trick. Of course knowing that ^ and $ would...
This may help you. In OS X, there is a preference for alert sounds in general. I have changed my alert sound to a different one and done the echo "\a". The alert sound I chose was played. I chose a different one and that sound played. So perhaps on your unix platform (OS X is BSD)...
Hello.
I have a problem with spaces in file and directory paths that tar won't handle. I need to back up files that have been modified in the last 14 days and I use the following command to find them and tar them. However, quite a few files have spaces in them and they don't get backed up. I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.