[Wylug-help] Sh problem

Anne Wilson cannewilson at googlemail.com
Thu Apr 17 12:43:47 BST 2008


On Thursday 17 April 2008 12:22:59 John Hodrien wrote:
> On Thu, 17 Apr 2008, Towle, William wrote:
> >  You've got two options here, depending which you think
> > is neatest. The quoting style is important in the first
> > case because of the way you want date's output used:
> >
> > 	tar cvpzf "/media/USB Flash Memory/partition1/EeePC$(date
> > +%F).tar.gz" --exclude=/media* --exclude=/proc/* --exclude=/lost+found/*
> > --exclude=/mnt/* --exclude=/sys/* --exclude=/home.* /
> > 	tar cvpzf /media/USB' 'Flash' 'Memory/partition1/EeePC$(date
> > +%F).tar.gz --exclude=/media* --exclude=/proc/* --exclude=/lost+found/*
> > --exclude=/mnt/* --exclude=/sys/* --exclude=/home.* /
>
> I'd pose a third more common option than your second:
>
>       tar cvpzf /media/USB\ Flash\ Memory/partition1/EeePC$(date
>
Thanks, all of you.  It was slightly odd, in that it gave me a root prompt, so 
I thought it had failed again.  I typed 'exit' and it returned to user prompt 
and the directories started to scroll!

The result, however, is just what I needed, so thanks again.

Anne


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://list.wylug.org.uk/pipermail/wylug-help/attachments/20080417/043cb7cd/attachment.bin


More information about the Wylug-help mailing list