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:
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.
There is 1 alternative - vote for the best!
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
If you can do better, submit your command here.
You must be signed in to comment.