The simplest way I know. Show Sample Output
or, to process a single directory:
for f in *; do mv $f `echo $f |tr '[:upper:]' '[:lower:]'`; done
Show Sample Output
This will convert filenames from uppercase to lowercase. I find this useful after downloading images from my digital camera. This works for English, but other languages may need something slightly more complex like this:
for i in *; do mv "$i" "$(echo $i|tr [:upper:] [:lower:])"; done
Also, the quote marks aren't necessary if your filenames don't contain spaces.
easier way to recursively change files to lowercase using rename instead
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.
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.
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
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:
https://binaryoptionrobotinfo.com/es/forums/users/kotalotto-group/
https://coub.com/kotalotto https://profile.hatena.ne.jp/kotalottogroup/ https://issuu.com/dizzila https://about.me/kotalotto https://disqus.com/by/kotalottogroup/about/ https://kotalottogroup.educatorpages.com/ https://speakerdeck.com/kotalottogroup https://lookbook.nu/user/10507564-Kotalotto-group https://devpost.com/kotalottogroup https://knowyourmeme.com/users/kotalottogroup https://qiita.com/kotalottogroup https://kotalottogroup.dreamwidth.org/profile https://anchor.fm/kotalotto-group https://bibnum.obspm.fr/user-profiles/profiles/user/id/6047/type/1 https://www.etsy.com/people/2ylat4ngmimu9rdb?ref=hdr_user_menu-profile https://ldjam.com/users/kotalotto-group https://www.urbanterror.info/forums/index.php?/user/183796-kotalottogroup/?logout=204378397 https://www.stem.org.uk/user/1111041/ https://www.atlasobscura.com/users/kotalottogroup https://artmight.com/user/profile/660196 https://linktr.ee/kotalottogroup https://www.viki.com/users/kotalottogroup/about https://magic.ly/kotalottogroup https://www.gambletalk.com/members/kotalottogroup.13620/ https://heylink.me/kotalottogroup/ https://www.strata.com/forums/users/kotalottogroup/ https://www.wishlistr.com/profile/kotalottogroup https://www.marginallyclever.com/learn/forum/users/kotalottogroup/ https://itmig.curie.fr/members/3472/profile https://medium.com/@kotalottogroup http://www.icell-uae.com/index.php/forum/profile/18849-kotalottogroup https://dribbble.com/Sumseltoto/about https://support.themecatcher.net/forums/users/kotalottogroup https://camp-fire.jp/profile/kotalotto-group https://confengine.com/user/kotalotto-group https://vocal.media/authors/kotalotto-group https://www.intensedebate.com/people/kotalottogroup https://www.harc.com.au/forums/users/kotalottogroup/ https://www.bitsdujour.com/profiles/wBp1dd