Skip to main content

New answers tagged

-1 votes

Error in deleting files or directories older than 1 day

Just specify path followed by type. In your case it's type file(s) and director(ies)y. Separate type with , . Following should work for you. find /u01/Release/ -type f,d -mtime +1 -delete
Merlincool's user avatar
0 votes

rm on symlinks works different on Mac

Since you know/see that the behaviour differs - why don't you just extend your invocation by one character and get the same behaviour on both? $ mkdir tmp $ touch tmp/test{0..9} $ ln -s tmp symlink $ ...
tink's user avatar
  • 6,868
2 votes

rm on symlinks works different on Mac

I can't see any way to have rm on a Mac act in the way it does on a Linux-based system, such that it is to leave the target of the symlink untouched. This find command looks like it will achieve what ...
Chris Davies's user avatar

Top 50 recent answers are included