From: chuck gelm <chuck@gelm.net>
To: James Miller <jamtat@mailsnare.net>
Cc: linux-newbie@vger.kernel.org
Subject: Re: convert windows file names
Date: Fri, 15 Apr 2005 14:00:53 -0400 [thread overview]
Message-ID: <42600155.60209@gelm.net> (raw)
In-Reply-To: <Pine.LNX.4.61.0504150930530.5717@localhost.localdomain>
James Miller wrote:
<snip>
> But, on to file names. unfortunately, the names for the pieces I'm
> recording from this station follow Windows long-file-naming conventions.
> Even worse, the names tend to be quite complex and long. Here are a
> couple of examples:
>
> Anton\ Reicha-\ Albert\ Schweitzer\ Quintett\ -\ Wind\ Quintet\ No.9\
> in\ D\ major\ Op.91\ No.3-\ Finale-\ Allegretto.mp3
>
> Patrick\ Cohen\ \&\ Mosaiques\ Quartet\ -\ Quintet\ For\ Piano\ \&\
> Strings\ In\ D\ Major\,\ Op.56??5\,\ G411\ -??.\ Andante\ Come\ Prima.mp3
>
> Feeding those names to cat so I can join the movements into a single
> file is going to be a major pain in the wazoo, as they say down at
> symphony hall. What I was hoping to find is a script that would
> automatically convert all the wierd characters into more standard Unix
> file-naming characters. But so far I've come up empty-handed. Can anyone
> point me to some utility that might do what I need?
>
> As a last resort, I might try to write my own script. I'm not too hot on
> doing that though, since I'm at an extremely rudimentary level when it
> comes to script writing. If it comes to that, could someone maybe help
> me get started by giving an example for a script that would do the
> renaming I want? I'd like to retain the bulk of the information, though
> I don't mind truncating words at, say 5 letters. I suppose the main
> thing would be replaing all the spaces and/or punctuation with dashes
> and/or underscores.
>
> Thanks, Jam
> es
man rename
...
rename " " "_" * # over and over again. ;-)
HTH, Chuck
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
prev parent reply other threads:[~2005-04-15 18:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-15 15:04 convert windows file names James Miller
2005-04-15 15:15 ` Flemming Greve Skovengaard
2005-04-15 16:37 ` James Miller
2005-04-15 17:16 ` J.
2005-04-15 18:17 ` Flemming Greve Skovengaard
2005-04-15 19:29 ` James Miller
2005-04-15 15:39 ` Peter
2005-04-15 16:48 ` Ray Olszewski
2005-04-15 18:49 ` James Miller
2005-04-15 18:00 ` chuck gelm [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42600155.60209@gelm.net \
--to=chuck@gelm.net \
--cc=jamtat@mailsnare.net \
--cc=linux-newbie@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox