[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: [PROGRAMMERING] [BASH] parameter expansion



Michael Rasmussen wrote:
On Tue, 25 Jul 2006 09:51:29 +0200, Kristian Nørgaard wrote:


sslug@sslug tar cvf test.tar $EXCL testdir/ testdir/
testdir/testfil
testdir/testfil~


Du skal ikke have plinger inden i udtrykket, da plingerne bliver medtaget
i udtrykket, altså --exclude '*~', og da plinger ikke er tilladt i
filnavne, vil det aldrig matche nogen filer.

Ikke forstået, det virker jo netop når jeg inkluderer plinger explicit:

sslug@sslug tar cvf test.tar --exclude '*~'  testdir/

Prøv sådan i stedet for:
EXCL="--exclude *~ --exclude .#*"


nope, så expanderer * for tidligt, nemlig til filer i mit nuværende dir.

/ Kristian



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

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