Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-13-2007, 06:00 PM   #1
Registered: Jan 2004
Location: New Zealand
Distribution: Mint | Sabayon
Posts: 160

Rep: Reputation: 15
Bash - Mass file renaming problem

Building my Amarok music collection I get crashes. The problem is not all file names are unicode or UTF-8. Some are in foreign languages or use unusual characters. I use en-GB language and believe utf-8 is what I need to use. Amarok searches, finds discrepancies and crashes, aka - no catalog!

Does anyone know a practical way to do this? I was thinking of a search and sort command or shell script.

find ./ -type | xargs grep ????
Old 02-14-2007, 11:27 AM   #2
Registered: Jul 2006
Location: Louisville, KY
Distribution: Fedora 12, Slackware, Debian, Ubuntu Karmic, FreeBSD 7.1
Posts: 443
Blog Entries: 1

Rep: Reputation: 47
my inclination would be to pipe the file listing through cat -v; I believe that this will give all non ascii sequences as escaped octal.

Take this with a huge grain of sodium; I have no idea if/how modern versions of cat handle unicode.
Old 02-14-2007, 07:02 PM   #3
Registered: Jan 2004
Location: New Zealand
Distribution: Mint | Sabayon
Posts: 160

Original Poster
Rep: Reputation: 15
Renaming solution

Okay krename, a GUI renaming tool, has support for renaming files to a set encoding like UTF-8.

I'll try it out and post how it works!


bash, rename, shell script, utf8

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mass mp3 directory renaming schbond Linux - General 4 01-05-2007 12:18 PM
a question about renaming files in mass! zeltak Linux - Software 1 05-24-2006 07:12 AM
bash help, renaming file extensions trey85stang Linux - General 8 07-21-2005 05:51 PM
Perl or Bash Mass File Edit redneon Programming 1 10-14-2004 12:43 PM
Mandrake File Renaming Problem omega147 Mandriva 15 10-21-2003 01:13 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration