iso-8859-1 to utf-8 safe recursive rename

detox -r -s utf_8 /path/to/old/win/files/dir
This command is a powerful "detoxifier" that eliminates special chars, spaces and all those little chars we don't like. It support several "sequences" so be sure to check your /usr/local/etc/detoxrc while at it... and maybe define your own
Sample Output
detox -r -v -n -s utf_8 /media/archivo/audio/music/selections/
Scanning: /media/archivo/audio/music/selections/
/media/archivo/audio/music/selections//2008 indie -> /media/archivo/audio/music/selections//2008_indie
/media/archivo/audio/music/selections//2008 indie/emily_haines_&_the_soft_skeleton-the_lottery.mp3 -> /media/archivo/audio/music/selections//2008 indie/emily_haines_and_the_soft_skeleton-the_lottery.mp3
/media/archivo/audio/music/selections//2008 indie/boat-(im_a)_donkey_for_your_love.mp3 -> /media/archivo/audio/music/selections//2008 indie/boat-im_a-donkey_for_your_love.mp3
/media/archivo/audio/music/selections//2008 indie/say_hi_(to_your_mom)-northwestern_girls.mp3 -> /media/archivo/audio/music/selections//2008 indie/say_hi-to_your_mom-northwestern_girls.mp3
/media/archivo/audio/music/selections//2008 indie/the__duke__spirit-send_a_little_love_token.mp3 -> /media/archivo/audio/music/selections//2008 indie/the_duke_spirit-send_a_little_love_token.mp3
/media/archivo/audio/music/selections//2008 indie/john_vanderslice-exodus_damage_(remix).mp3 -> /media/archivo/audio/music/selections//2008 indie/john_vanderslice-exodus_damage-remix-.mp3
/media/archivo/audio/music/selections//2008 indie/butch_walker_and_the_lets_go_out_tonites-bethamphetamine_(pretty_pretty).mp3 -> /media/archivo/audio/music/selections//2008 indie/butch_walker_and_the_lets_go_out_tonites-bethamphetamine-pretty_pretty-.mp3
/media/archivo/audio/music/selections//2008 indie/los_campesinos-dont_tell_me_to_do_the_math(s).mp3 -> /media/archivo/audio/music/selections//2008 indie/los_campesinos-dont_tell_me_to_do_the_math-s-.mp3
/media/archivo/audio/music/selections//2008 prior to -> /media/archivo/audio/music/selections//2008_prior_to

16
By: renich
2009-03-16 07:50:36
ut

2 Alternatives + Submit Alt

  • Nothing advanced, it just finds filenames that are stored with ISO-8859-1 characters and and converts those into UTF-8. Recommended to use without the --notest flag first so you can see what will be changed.


    8
    convmv -r -f ISO-8859-1 -t UTF-8 --notest *
    jsiei97 · 2009-08-17 18:23:19 1
  • Warn: use convmv or detox if you can: they are the right tools. But if you want to do it manually, you can use this command to find the problematic files and transliterate their accented characters to their ascii equivalent. (Useful when doing cd backup: growisofs may fail on files which come from the old iso8859-* days.)


    -1
    LANG=fr_FR.iso8859-1 find . -name '*['$'\xe9'$'\xea'$'\xeb'$'\xc9'']*'|while read f; do a="$(echo $f|iconv -f iso8859-1 -t ascii//TRANSLIT)"; echo "move $f => $a"; done
    gibboris · 2011-04-06 17:03:31 1

What Others Think

@renich Thanks! (I love how command-line fu brings out all these uber-useful commands :-)
mpb · 706 weeks ago
Under debian/ubuntu, this command is available after installing the 'detox' package.
bwoodacre · 706 weeks ago
On Fedora, you have to compile it... Hope to maintain this rpm someday... when I learn how.
renich · 705 weeks and 6 days ago
Duracell bigbasket http://www.bust-old.unimore.it/out.asp?url=https://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket http://www.techno-press.org/sqlYG5/url.php?url=http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket duracell bigbasket http://extranet.symop.com/MM2T.asp?Envoi=20170117_103057&Param_RM=1&NextURL=http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket duracell bigbasket http://clevelandmunicipalcourt.org/linktracker?url=http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket duracell bigbasket duracell bigbasket http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket http://oldtmt.vedomosti.ru/rss/toolbars/closeAd.php?backUrl=http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket http://ads.glassonline.com/ads.php?id_banner=370&id_campaign=291&link=http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket duracell bigbasket duracell bigbasket duracell bigbasket http://soeisha.bona.jp/?wptouch_switch=desktop&redirect=http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket http://big5.jobcn.com/gate/big5/www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/holostyak-stb-2021" rel="dofollow">duracell bigbasket http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket duracell bigbasket http://counter.ogospel.com/cgi-bin/jump.cgi?http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket duracell bigbasket http://zhzh.info/go?https://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket duracell bigbasket http://sbtg.ru/ap/redirect.aspx?l=http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket duracell bigbasket http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket http://2017.adfest.by/banner/redirect.php?url=https://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs&ref_=%2Fbp%2Fsearch_rooms.jsp" rel="dofollow">duracell bigbasket www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket duracell bigbasket www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket http://i.erois2.com/out.php?id=00909&go=https://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket http://lavoro.provincia.como.it/portale/LinkClick.aspx?link=https://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs&mid=935" rel="dofollow">duracell bigbasket http://x.webdo.cc/global_outurl.php?now_url=https://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket duracell bigbasket http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket http://sne1.m5.coreserver.jp/?wptouch_switch=mobile&redirect=https://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket http://old.evraz.com/bitrix/redirect.php?event1=news_out&event2=/upload/iblock/137/EVRAZ_ZSMK_Krajowa+ocena+techniczna+ITB-%D0%9A%D0%9E%D0%A2-2017_0052.pdf&event3=EVRAZ_ZSMK_Krajowa+ocena+techniczna+ITB-%D0%9A%D0%9E%D0%A2-2017_0052.pdf&goto=https://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket duracell bigbasket duracell bigbasket http://www.nexto.pl/rf/pg?pid=576&url=https://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket duracell bigbasket http://fdp.timacad.ru/bitrix/redirect.php?event1=&event2=&event3=&goto=http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket
AAA11111 · 6 weeks and 3 days ago
Bigbasket duracell http://www.pnjh.phc.edu.tw/imglink/hits.php?id=32&url=https://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket http://m.shopinusa.com/redirect.aspx?url=http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket duracell bigbasket www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket duracell bigbasket duracell bigbasket duracell bigbasket duracell bigbasket http://www.prokhorovfund.ru/bitrix/rk.php?id=14&event1=banner&event2=click&event3=1+%2F+%5B14%5D+%5Bsecond_page_200%5D+XI+%CA%D0%DF%CA%CA&goto=https://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket http://cms.hq88.com/cms/gotoUrl.do?nId=167798&url=http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket http://ads.timesindonesia.co.id/network-1/www/delivery/ck.php?oaparams=2__bannerid=23__zoneid=33__cb=7f6aba05b4__oadest=http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket http://adbor-piccolino.atspace.eu/redirect.php?url=http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket duracell bigbasket http://rd.fresheye.com/opg/web/1/?go=https://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket http://tracking.nesox.com/tracking/?u=agency@easy-news.info&msg=CD0B1312.2D29.4CFF.9872.3985CBBBA5B4.0003.20110216.BVVPPMPJZLMZOFUK@datapromotiongroup.net&url=http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket http://www.tces.hlc.edu.tw/dyna/netlink/hits.php?id=286&url=https://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket http://track.productsup.io/click.redir?siteid=368293&version=1.0&pup_e=4674&pup_id=006903011071&redir=https://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket duracell bigbasket http://harburg-aktuell.de/revive/www/delivery/ck.php?oaparams=2__bannerid=19__zoneid=26__cb=21b424239f__oadest=http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket http://www.topmudsites.com/cgi-bin/topmuds/out.cgi?id=cougar&url=https://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket duracell bigbasket http://adapi.now.com/ad/api/act.ashx?a=2&sc=3490&s=30000219&l=1&t=0&c=0&u=https://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket duracell bigbasket duracell bigbasket www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket duracell bigbasket http://japan.rurubu.com/Yado/jump.asp?ac=IA-15Q-0036S&rurl=http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket duracell bigbasket http://www.guilinwalking.com/uh/link.php?url=http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket http://www.benz-web.com/clickcount/click3.cgi?cnt=shop_kanto_yamamimotors&url=http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket duracell bigbasket http://www2.rhino3d.com/common/cookies/setcookie.asp?language=it&return=https://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs" rel="dofollow">duracell bigbasket duracell bigbasket duracell bigbasket http://www.sonce.net/redirect.php?url=http://www.bigbasket.com/pd/40264001/victorpro-intense-aaa-alkaline-battery-with-dual-anti-leak-seals-long-lasting-2-pcs/" rel="dofollow">duracell bigbasket
AAA11111 · 6 weeks and 3 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! pug puppy for sale illinois,pug puppies for sale wa,pug puppies for sale south yorkshire,pug puppies for sale near 91331,cheap pugs for sale,pug puppies for sale near me,pug puppies for sale under 500,pug for sale near me,pug puppy for sale,pug puppy,pug for sale,pug puppies for sale in pa,pugs for sale,pug puppies for sale,teacup pug puppies for sale Browse Here for more information: https://excellenthomepugpuppies.com/product/pug-puppies-for-sale-under-500-near-me/ Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pugs puppies for sale pug puppies for sale in pa pug puppies for adoption in pa
rahimhh21 · 2 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: