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:
all files in the directory get moved, in doing so the new name of the file is the original name with out spaces (using translate command)
There are 12 alternatives - vote for the best!
This commands removes space from all the files with specific extension. I've specifed *.jpg as an example.
This command will replace spaces in filename with underscore, for all file in directory that contain spaces.
If you can do better, submit your command here.
You must be signed in to comment.