[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: [NOVICE] cp/mv script?



2008/9/16 "E. Sjørlund" <sslug@sslug>:
> Folmer Fredslund wrote:
>> Fra "man rename" :
>> <snip/>
>>        To translate uppercase names to lower, you'd use
>>
>>                rename 'y/A-Z/a-z/' *
>>
>> OPTIONS
>> <snip/>
>>        -f, --force
>>                Force: overwrite existing files.
>> <snip/>
>>
>>> Der er mange filer, så manuelt er ikke en option (i hvert fald ikke
>>> hvis jeg kan slippe...), nogle ideer?
>>>
>>
>> Håber det kan bruges.
>
> Jeg kan ikke få det til at virke.
> Jeg er inde som root, og har med touch oprettet nogle filer:
>
> z900:/tmp/test # ll *
> -rw-r--r-- 1 root root   0 Sep 16 17:22 aBCd
> -rw-r--r-- 1 root root   0 Sep 16 17:22 aBc
>
> A:
> total 0
> drwxr-xr-x 2 root root 96 Sep 16 17:24 AB
> -rw-r--r-- 1 root root  0 Sep 16 17:22 aBCd
> -rw-r--r-- 1 root root  0 Sep 16 17:22 aBc
>
> B:
> total 0
> -rw-r--r-- 1 root root 0 Sep 16 17:22 aBCd
> -rw-r--r-- 1 root root 0 Sep 16 17:22 aBc
>
> Det ligner det, jeg mener at Daniel beskriver som sin virkelighed.
>
> z900:/tmp/test # rename -f 'y/A-Z/a-z/' *
> z900:/tmp/test # ll *
> -rw-r--r-- 1 root root   0 Sep 16 17:22 aBCd
> -rw-r--r-- 1 root root   0 Sep 16 17:22 aBc
>
> A:
> total 0
> drwxr-xr-x 2 root root 96 Sep 16 17:24 AB
> -rw-r--r-- 1 root root  0 Sep 16 17:22 aBCd
> -rw-r--r-- 1 root root  0 Sep 16 17:22 aBc
>
> B:
> total 0
> -rw-r--r-- 1 root root 0 Sep 16 17:22 aBCd
> -rw-r--r-- 1 root root 0 Sep 16 17:22 aBc
>
> Som det ses, bliver hverken filer eller dir omdøbt.
> Har du et bud på, hvad der er galt?
>

Jep.
Nu du spørger har jeg.
Den kommando jeg kom med laver et filnavn med _kun_ store bogstaver om
til en fil med _kun_ små bogstaver.
Jeg skal vist lære at læse indenad...

Det viste sig jo også at problemet var lidt mere indviklet en først beregnet.

mvh

> sslug-novice: Listen for begynder-relaterede spørgsmål
>
>



-- 
Folmer Fredslund


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2008-10-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] *