in reply to Re^2: To Delete folders older than 14 days.-Want one liner command
in thread To Delete folders older than 14 days.-Want one liner command
ls is one of the very first *nix commands one learns. By writing ls-l, and not seeing why that is wrong, you give the impression that you have virtually no *nix knowledge. I'd seek out a tutorial before proceeding further - perhaps ask your system administrator. You may end up doing irreparable damage using dangerous commands such as rm -rf when you don't really appear to know what you're doing.
I suggested using system instead of backticks; not in addition to backticks. I took the time to provide you with a link to the system command; perhaps you could take the time to read the documentation it points to.
You originally showed this path /D/archieve/Test; now you show D/Archieve/Test. (I'm even wondering whether that should be Archive or archive in the middle of the pathname.) Find out what the real pathname is before deleting directories and all their contents recursively and forcefully!
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: To Delete folders older than 14 days.-Want one liner command
by rrrrr (Novice) on Sep 18, 2012 at 03:16 UTC |