Massive change of file extension (bash)

for file in *.txt; do mv "${file%.txt}{.txt,.xml}"; done
Using bash parameters expansion

4
By: rgawenda
2020-01-23 08:54:34

1 Alternatives + Submit Alt

What Others Think

Thanks for the article information of the author, it was very helpful to me. Thanks for this valuable information for all. wuxiaworld
billclinton · 65 weeks ago
learned alot here but are there any other alternatives? lifecoachomahane.com
looneyhans · 61 weeks and 1 day ago
i should really be doing this too.. mold remediation thanks for sharing!
idasanka · 56 weeks and 4 days ago
kitchen remodeling grand rapids I am amazed by the way you have explained things in this article. This article is quite interesting and I am looking forward to reading more of your posts. Thanks for sharing this article with us.
yeoyeo · 54 weeks and 6 days ago
This is exactly what I was looking for. Thank God I found this site! Thanks for sharing this stairs
sammm · 51 weeks and 5 days ago
Thank you for your tips! Your content is as always very informative. buy essay
TravisGregory · 39 weeks and 5 days ago
It works!! startup loan spokane
geebranz · 37 weeks ago
Thank you for sharing this here. I had some difficulties while making my project, this really helped. I am just going to make my cover letter online and get it submitted so that I could get a better approach at getting a job where I can further do new projects and get help from posts like these.
EmmaSparks · 31 weeks ago
Can we change the file extension of the image through this method. I think it should be work from it. Please guide me about it. I need this to create the cartoon explainer video. I would like to thank you in advance.
MarkButtler · 23 weeks and 1 day ago
This is a nice guide for me. I want to know more about the file extension changes. Because it is tough and tricky for those who are non-technical like me who are working at the holiday agency in UK. So, please create more guides regarding other topics as well.
SamTim · 21 weeks and 2 days ago
Buy Psychedelics Online in USA here at your favorite psychedelics shop. Welcome to the BuyPsychedelicsUSA, The place for all your psychedelic drug and herbs. You’re at the right place to receive new experiences, insights, experiences. BuyPsychedelicsUSA has a large collection of products such as DMT, Magic Mushroom ,LSD , kratom, Ayahuasca and more . buy psychedelics online Take the time to see everything and don’t hesitate to contact us if you have questions or for advice. buy legal psychedelics online is usa uk and australia. buy dmt online buy lsd online buy ayahuasca online ibogaine for sale mdma for sale buy kratom online buy mescaline online buy mushroom online buy psychedelics online usa 4 ACO DMT For Sale Buy 5 MEO DMT Online buy dmt online NN DMT Erowid For Sale dmt vape pens for sale Changa DMT buy lsd gel tabs liquid lsd for sale buy lsd online buy psychedelics online Buy dmt online 5 meo dmt for sale 4-aco-dmt for sale dmt dose how to smoke dmt whats dmt making dmt 4aco dmt smooking dmt mushroom edibles magic mushroom chocolate how to make dmt how long does dmt last buy magic mushrooms online stiiizy pods buy magic mushrooms online Psychedelic Magic Mushrooms For Sale Online Where Can I get Psilocybin Mushroom Online What Are Psilocybins Mushroom buy magic mushrooms online shop dry magic mushroom buy mushroom capsules online shop psilocybin magic mushroom buy magic mushroom edibles buy thc carts online buy thc carts online THC Vapes Carts For Sale Buy Prefilled Vape Cartridges THC Vape Pens For Sale Best THC Vape Cartridge buy dmt online buy lsd online buy psychedelics online Buy dmt online 5 meo dmt for sale 4-aco-dmt for sale https://thcbulksupplies.com buy weed online buy stiiizy pods online buy marijuana online with worldwide shipping buy weed online usa buy weed online Weed For Sale Online in USA where to buy weed online Buying Weed Online Where To Buy Weed Online in USA Buy magic mushrooms Buy nembutal Online 4 aco dmt australia 4 aco dmt buy usa 4 aco dmt for sale 4 aco dmt supplier 4 aco dmt uk 5 meo dmt buy 5 meo dmt where to buy acid blotter paper ayahuasca tea canada Ayahuasca tea for sale buy 5 meo dmt Canada buy 5 meo dmt online Buy ayahuasca tea online Buy DMT Buy DMT online Buy DMT online Canada buy dmt online usa buy dmt vape pen buy liquid lsd Buy lsd Buy LSD acid Buy LSD Gel Tabs online buy lsd online buy LSD tabs online buy lysergic acid DMT for sale dmt pen dmt vape DMT Vape Pen DMT vape pen for sale online dmt vape pens DMT Vape Cartridge LSD acid for sale LSD blotter paper for sale LSD blotter sale lsd blotters for sale lsd for sale lsd for sale online lsd gel tabs lsd tabs for sale lysergic acid for sale Order ayahuasca tea online purchase ayahuasca tea Where can I buy 5-MeO-DMT online Where can I buy ayahuasca tea a href="https://thcbulksupplies.com/"rel="dofollow">buy weed online buy stiiizy pods online buy marijuana online with worldwide shipping buy marijuana edibles online smart bud moon rocks for sale buy cbd oil online dank vapes for sale order brass knuckles online stiiizy pod exotic carts moon rocks drugs buying weed online acdc weed granddaddy purple near me buy new york city diesel grape god strain buy 30 cannabis fat burner capsules buy marijuana flowers online buy sun rocks online buy red congolese live resin online buy pre-rolled joints online buy real weed onlin cheape buy sour diesel online mail order weed order marijuana online weed for sale pineapple punch strain backwood preroll where can i buy weed online buy weed online usa tko carts order weed online buy medical weed online buy weed online usa buy legal weed online where can i buy weed online can you buy weed online order marijuana online marathon-og buy psychedelics online in usa buy weed online in usa
snupdablogger · 1 week and 2 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: