[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: [TEKNIK] Hjælp til re-nummerering af filer i mappe-træ



"Michael Schmidt" <sslug@sslug> writes:

> Hej NG
> Jeg har lige rippet en række lydbøger og er nu endt med en fil
> struktur i stil med
>
> Forfatter
> `-- Titel
>       |-- Disk_1
>       |    |-- 01 - Track_1.spx
...

> Det vil jeg gerne ændre til:
>
> Forfatter
> `-- Titel
>       |-- 01 - Track_1.spx
...

Så du vil bare fjerne disk-niveauet? I så fald kan det med perl-udgaven
af rename (standard på debian og afledte distributioner), gøres med:

rename '$a++; $_ = sprintf "%02d - Track_%d.spx",$a,$a' Disk_*/*

(hvis din kommandofortolker ekspanderer *'erne i fornuftig rækkefølge)

.Henrik

-- 
Registreret Linux bruger nummer 61622
Registrer dig selv på http://counter.li.org/


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2009-04-01, 02:01 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] *