rename / move Uppercase filenames to lowercase filenames current directory

FileList=$(ls); for FName in $FileList; do LowerFName=$(echo "$FName" | tr '[:upper:]' '[:lower:]'); echo $FName" rename/move to $LowerFName"; mv $FName $LowerFName; done
move filename/rename filenames with Uppercase to lowercase in current directory
Sample Output
 FileList=$(ls); for FName in $FileList; do LowerFName=$(echo "$FName" | tr '[:upper:]' '[:lower:]'); echo $FName" rename/move to $LowerFName"; mv $FName $LowerFName;  done

1
By: aysadk
2021-01-06 16:11:00

What Others Think

For the love of $diety, don't do this! This will break if any of the filenames have spaces (at the very least). * loop with `for fname in *` * quote variables, especially when they're filename or used as arguments Also, consider using `mv -i` to confirm overwrites in case the directory has files with almost-duplicate names. for FName in * ; do LowerFName=$(echo "$FName" | tr '[:upper:]' '[:lower:]'); mv -iv "$FName" "$LowerFName" ; done
minnmass · 7 weeks and 3 days ago
guitar lessons denver I knew that was the best!
yeoyeo · 7 weeks and 3 days ago
I have read your blog post about (Get an audio notification if a new device is attached to your computer) and I found it quite interesting. If you find any issue in hosting or software then you can visit this site WebTechCoupons and get very affordable deals for your website.
WebTechCoupons59 · 7 weeks and 1 day ago
approaches to remain productive and strain-unfastened in the course of this confusing time. finding the right skills to your startup might be easier with those proven hiring guidelines. [url=https://www.newsreviewnet.com/voipphone]voip phone service[/url]
newsreviewnet · 6 weeks and 6 days ago
Custom essay writing services have become very popular among students seeking College Essay Writing Help and best college essay help services.
joandavis · 6 weeks and 6 days ago
here is some simple tricks without using `tr` `name='name.extension'; echo "${name^}"; echo "${name^^}"; name='NAME.EXTENSION'; echo ${name,}; echo ${name,,};` and output ``` Name.extension NAME.EXTENSION nAME.EXTENSION name.extension ```
rzlvmp · 6 weeks and 5 days ago
Your guide was quite interesting. I will try them https://puzzle-jigsaw.com
LidaKieu · 6 weeks and 5 days ago
Interesting. For whatever reason this command doesn't work for me. Any idea what's the problem here? I'd be grateful for some advice or tips how to use this. Thanks! motorataj.pl
davisjonathan318 · 6 weeks and 4 days ago
A very interesting website. https://www.webarticlelist.com [url=https://www.webarticlelist.com/voipphone]voip phone[/url] business pages
giaome · 6 weeks and 4 days ago
In the past, I could not write such colorful essays as others, but when I entered the university, I began to sit on this site https://topessaybrands.com/review/payforessay-net-review/, on which written works are written, and most importantly, it is competent and pleasant to read
chineapplen · 6 weeks and 4 days ago
I have learned these kinds of linux programs during my pg classes and this post helps me to recollect those old memories. I think nowadays students https://photoeditingindia.com/services/photo-retouching-services have a wide range of opportunities to learn everything through online. Looking here for more details.
Alyssalauren · 5 weeks and 3 days ago
Thanks for the information keep sharing such informative post keep suggesting such post. www.myccpay.com
Malachi · 5 weeks and 3 days ago
Thanks for the information keep sharing such informative post keep suggesting such post. visit here
Smitham · 5 weeks and 1 day ago
Experience candy crush saga stories for fun
Jimmin · 5 weeks and 1 day ago
Wow, this is a really amazing and interesting post thank you for sharing the informative post. This is really helpful for us. Keep sharing as we are waiting for more beneficial posts. If you are also looking to buy dresses online then you much check out some latest collections of buy ethnic dresses for women, vishudh kurtas online, summer trousers for women online, etc at Ketch.
getketch · 4 weeks and 6 days ago
I agree with you. This post is truly inspiring. I like your post and everything you share with us is current and very informative, I want to bookmark the page so I can return here from you that you have done a fantastic job. tetris
tetrisgameaz · 4 weeks and 2 days ago
thank you for this! really appreciate you doing this box
sammm · 4 weeks and 2 days ago
Minmass, the author of the very first comment. Is your solution valid? I was about to use the command provided in the article but I have my doubts. I don't want to have my files broken. Is your solution alright? Mags Luxury Living Homes
Hawkins · 2 weeks and 6 days ago
This is a very technical blog post. They are giving information about replacing cigarette sockets with USB sockets. You can have an innovative idea about cigarette sockets. Thanks for sharing such innovative ideas with us. Keep sharing more. http://jawadtransport.com/chiller-van/">Chiller Van
raoahmar · 2 weeks and 2 days ago
Luxury underwear brands have opted for a unique fabric called micro-modal for unmatched comfort and durability. This natural fiber from European beech wood offers a number of special benefits that can only be found in this micromodal fabric. micromodal underwear
moderncrew · 1 week and 6 days ago
These immediately give you an idea of ??the winter glamor you are looking for. The Blanc9 collection offers you an atmosphere in one place with its winter dresses for women. Dresses for Women
blanc9 · 1 week and 6 days ago
This is really a complex process. Thanks for sharing the information. Please visit our website for myeconlab answers
lopezjmary7 · 1 week and 6 days ago
This is really a critical error. I have faced this issue several times. Thanks for sharing. Connect us to get NAATI certified Chinese translators
doloresmiles7 · 1 week and 5 days ago
So,Are you Looking best offer on jackets for girls in the best quality, Also available in a variety of Product for your Better life Style? So, you can check out our best collection on Nautinati they can offer you the best quality product ethnic wear for boys
nautinati · 1 week and 4 days ago
Importance of wearing the right athletic gear Whether you're jogging or working out at the gym, you need a set of sportswear. Unfortunately, many people don't realize the importance of choosing sportswear over regular clothing when exercising. While exercise helps maintain physical and mental well-being, the right exercise equipment will help you achieve this goal. trousers
alcissports · 1 week and 4 days ago
Bira has always believed in minimalist yet visually appealing products of the highest quality. Our clothing line was already on the youth favorites list and our collectibles are absolutely adored by all of our customers. We believe in helping fellow comrades when they need us most, and this is where Better Air 91 comes from.Face Masks
ShopBira91 · 6 days ago
Thanks to this article I can learn more. Expand my knowledge and abilities. Actually the article is very real. Walgreenslistens
Ramos361 · 5 days ago
https://weediquettedispensary.org/product/tko-carts https://www.pentobarbitalnembutalenlinea.com/?product=nembutal-for-sale
weediquette · 3 days ago
https://weediquettedispensary.org/product/tko-carts.html https://www.pentobarbitalnembutalenlinea.com/?product=nembutal-for-sale.html
weediquette · 3 days ago
https://weediquettedispensary.org/product/tko-carts.html https://www.pentobarbitalnembutalenlinea.com/?product=nembutal-for-sale.html
weediquette · 3 days ago
I'm constantly searching on the internet for posts that will help me. MyAARPMedicare
Roseberry152 · 3 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: