commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Use find's built-in "exec" option to avoid having to do any weirdness with quoting.
There are 9 alternatives - vote for the best!
Will move in that case every file in the current folder older than 30 days to the "old" folder
Replace "mv $i old/" by any command such as rm / echo to do something different.
If you can do better, submit your command here.
You must be signed in to comment.