LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-13-2007, 05:00 PM   #1
smudge|lala
Member
 
Registered: Jan 2004
Location: Hertford
Distribution: Mint | Sabayon
Posts: 151

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, 10:27 AM   #2
bartonski
Member
 
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, 06:02 PM   #3
smudge|lala
Member
 
Registered: Jan 2004
Location: Hertford
Distribution: Mint | Sabayon
Posts: 151

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!
 
  


Reply

Tags
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 11:18 AM
a question about renaming files in mass! zeltak Linux - Software 1 05-24-2006 06:12 AM
bash help, renaming file extensions trey85stang Linux - General 8 07-21-2005 04:51 PM
Perl or Bash Mass File Edit redneon Programming 1 10-14-2004 11:43 AM
Mandrake File Renaming Problem omega147 Mandriva 15 10-21-2003 12:13 AM


All times are GMT -5. The time now is 05:22 PM.

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