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:
When you do a ls -1 | xargs rm it wouldn't workd because those files have spaces. So you must use
find -print0 and xargs -0
There are 3 alternatives - vote for the best!
I _think_ you were trying to delete files whether or not they had spaces. This would do that. You should probably be more specific though.
If you can do better, submit your command here.
You must be signed in to comment.