[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [MISC] mp3 fra audio-cd



Rune Zedeler <sslug@sslug> writes:

> Rune Zedeler wrote:
> 
> > SEEEJT!
> 
> Der er dog et lille problem.
> I filnavnene vil jeg gerne have den til at fjerne mellemrum og så i
> stedet skrive med stort begyndelsesbogstav. Kan man få den til det?
> Jeg har sat mp3-filnavnet til
> %A_%d_%t_%n.mp3
> Dette giver f.eks.
> Divinorum_Isms_06_can_you_hear.mp3
> - men det, jeg søger, er
> Divinorum_Isms_06_CanYouHear.mp3
> 
> Er der ikke en eller anden snedig perl-gut der lige kan stykke noget
> sammen, der sletter mellemrum i filnavne og istedet gør det
> efterfølgende bogstav stort?

Hvis alle spornumrene er tocifrede og du bruger en POSIX-kompatibel
kommandofortolker (f.eks. zsh eller bash):

for i in *.mp3; do mv $i `echo $i | perl -ne 'split /(\d)/; $_[4] =~
s/_(.)/\U\1/g; print $_[0].$_[1].$_[3]."_".$_[4].$_[5];'`; done

.Henrik

-- 
 | inu\/  & Emacs er hvad der skal til!
 |_aTe/\ 


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 19:28 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *