[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] Kopiering af dot-filer...



Onsdag den 28. april 2010 kvad Verner Kjærsgaard:
> Per Kofod skrev:
> > On 28-04-2010 21:35, Verner Kjærsgaard wrote:
> >> - tænk jeg ved ikke det her...sorry
> >> - det er sikkert indlysende, ok, here goes...
> >>
> >> Jeg har brug for at vide, hvorledes man kopierer dot-directories
> >> fra et sted til et andet (recursivt). Altså eksempelvis
> >>
> >> kopier -Rp .mozilla /tmp/somewhere
> >>
> >> Det virker fint, men nu vil jeg jo gerne kopiere en bunke dot
> >> biblioteker samtidigt...
> >>
> >> Denne konstruktion her virker jo ikke:
> >>
> >> cp -Rp .* /tmp/dot
> >>
> >> - fordi det indledende punktum i den her sammenhæng jo af bash
> >> oversættes til 'dette bibliotek'.
> >> - så det gælder vel om at få det indledende dot 'escaped' på en
> >> eller anden måde.
> >>
> >> Alle ideer er velkomne.
> >
> > cp -Rp .?* /tmp/dot
> >
> > Per
> 
> - tak for alle svar - men hvis i prøver det, vil i se, at det ikke
> funker...helt. Ovennævnte medtager også selve det bibliotek,
>  indefra hvilket kommandoen gives...
> 
Har ikke tid til at afprøve, men hvad hvis du sætter en backslash 
(plejer at betyde "escape") foran punktummet?

cp -Rp \.* /tmp/dot

Hilsen Johnny :o)


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

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