Replace spaces in filename

ls | while read -r FILE; do mv -v "$FILE" `echo $FILE | tr -d ' '`; done
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)

-3
2010-08-14 14:10:48

2 Alternatives + Submit Alt

What Others Think

Great survey. I'm sure you're getting a great response. Zonnepanelen Drogenbos
seomind · 23 weeks and 4 days ago
Thanks for providing recent updates regarding the concern, I look forward to read more. Zonnepanelen Haacht
seomind · 23 weeks and 4 days ago
Your work is very good and I appreciate you and hopping for some more informative posts Zonnepanelen Galmaarden
seomind · 23 weeks and 4 days ago
I will really appreciate the writer's choice for choosing this excellent article appropriate to my matter.Here is deep description about the article matter which helped me more. Zonnepanelen Halle
seomind · 23 weeks and 4 days ago
What a really awesome post this is. Truly, one of the best posts I've ever witnessed to see in my whole life. Wow, just keep it up. Zonnepanelen Glabbeek
seomind · 23 weeks and 4 days ago
I have to search sites with relevant information on given topic and provide them to teacher our opinion and the article. Zonnepanelen Herent
seomind · 23 weeks and 4 days ago
With so many books and articles coming up to give gateway to make-money-online field and confusing reader even more on the actual way of earning money, Zonnepanelen Grimbergen
seomind · 23 weeks and 4 days ago
this blog was really great, never seen a great blog like this before. i think im gonna share this to my friends.. Zonnepanelen Keerbergen
seomind · 23 weeks and 4 days ago
Great post! I am actually getting ready to across this information, is very helpful my friend. Also great blog here with all of the valuable information you have. Keep up the good work you are doing here. Zonnepanelen Haacht
seomind · 23 weeks and 4 days ago
This is a splendid website! I"m extremely content with the remarks!. Zonnepanelen Herne
seomind · 23 weeks and 4 days ago
The writer is enthusiastic about purchasing wooden furniture on the web and his exploration about best wooden furniture has brought about the arrangement of this article. Zonnepanelen Halle
seomind · 23 weeks and 4 days ago
Great Article it its really informative and innovative keep us posted with new updates. its was really valuable. thanks a lot. Zonnepanelen Hoeilaart
seomind · 23 weeks and 4 days ago
Welcome to the party of my life here you will learn everything about me. Zonnepanelen Herent
seomind · 23 weeks and 4 days ago
Thank you so much for ding the impressive job here, everyone will surely like your post. Zonnepanelen Holsbeek
seomind · 23 weeks and 4 days ago
wow... what a great blog, this writter who wrote this article it's realy a great blogger, this article so inspiring me to be a better person Zonnepanelen Herne
seomind · 23 weeks and 4 days ago
I was surfing net and fortunately came across this site and found very interesting stuff here. Its really fun to read. I enjoyed a lot. Thanks for sharing this wonderful information. Zonnepanelen Huldenberg
seomind · 23 weeks and 4 days ago
This is really very nice post you shared, i like the post, thanks for sharing.. Zonnepanelen Hoegaarden
seomind · 23 weeks and 4 days ago
This is a wonderful article, Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more ... good luck Zonnepanelen Kampenhout
seomind · 23 weeks and 4 days ago
Nice knowledge gaining article. This post is really the best on this valuable topic. Zonnepanelen Hoeilaart
seomind · 23 weeks and 4 days ago
You have done a great job. I will definitely dig it and personally recommend to my friends. I am confident they will be benefited from this site. Zonnepanelen Kapelle-op-den-Bos
seomind · 23 weeks and 4 days ago
I have checked this link this is really important for the people to get benefit from. Zonnepanelen Holsbeek
seomind · 23 weeks and 4 days ago
Thank you so much for ding the impressive job here, everyone will surely like your post. Zonnepanelen Kortenaken
seomind · 23 weeks and 4 days ago
My friend mentioned to me your blog, so I thought I’d read it for myself. Very interesting insights, will be back for more! Zonnepanelen Huldenberg
seomind · 23 weeks and 4 days ago
The blog and data is excellent and informative as well Zonnepanelen Kortenberg
seomind · 23 weeks and 4 days ago
The web site is lovingly serviced and saved as much as date. So it should be, thanks for sharing this with us. Zonnepanelen Kampenhout
seomind · 23 weeks and 4 days ago
I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own Blog Engine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it. Zonnepanelen Kraainem
seomind · 23 weeks and 4 days ago
Admiring the time and effort you put into your blog and detailed information you offer!.. Zonnepanelen Kapelle-op-den-Bos
seomind · 23 weeks and 4 days ago
Very useful post. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. Really its great article. Keep it up. Zonnepanelen Landen
seomind · 23 weeks and 4 days ago
I think about it is most required for making more on this get engaged Zonnepanelen Keerbergen
seomind · 23 weeks and 4 days ago
If you don"t mind proceed with this extraordinary work and I anticipate a greater amount of your magnificent blog entries Zonnepanelen Drogenbos
seomind · 23 weeks and 4 days ago
Pug Puppies for Sale Near Me pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pug puppies for sale $200 pugs for sale near me under $500 pugs for sale under $400 near me pugs for sale near me puppies for sale near me under $500 pug puppies for sale under $1,000 near me pug for sale pug puppies for sale under $300 Brindle Pug Pitbull Pug Mix Pugs for sale cheap Cheap pug affordable pug puppies for sale near me black pugs for sale near me White Pugs for sale pug dog for sale free pug puppies pug puppies for sale in my area mn pug breeders pug puppies indiana pugs for sale michigan PUG PUPPY ADOPTION Pug puppies for sale Pug puppies for sale near me Pug puppies near me Pug Puppies for Sale Under $500 Near Me Cute Pug Puppies Black pug puppies Black pug puppies for sale pug puppies for adoption black pug puppies for sale near me chihuahua pug mix puppies how much is a pug puppy teacup pug puppies baby pug puppies pictures of pug puppies pug puppies for sale in Ohio pug puppies price pug mix puppies teacup pug puppies for sale best food for pug puppy newborn pug puppies pug puppies craigslist pug puppies for sale craigslist adorable pug puppies how much does a pug puppy cost Pitbull pug mix puppies pug pit mix puppy pug puppies for sale $200 pug puppies for sale in NJ Pug puppies for sale in Wisconsin pug puppy cost pug puppy food royal canin pug puppy royal canin pug puppy food fawn pug puppy pug puppies for sale florida pug puppies for sale in Indiana pug puppies for sale in KY pug puppies for sale in NC pug dog puppy AKC Registered Pug Puppies For sale cheap pug puppies for sale near me cheap pug puppies for sale in California cheap pug puppies for sale in nj Black Pug Puppies for sale pugs puppies for sale pug puppies indiana Amazing! This blog looks just like my old one! It's on a completely different subject but it has pretty much the same layout and design. Wonderful choice of colors!
rahimhh21 · 3 weeks and 6 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: