[Wylug-help] Sh problem

John Hodrien johnh at comp.leeds.ac.uk
Thu Apr 17 12:23:05 BST 2008


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

jh

-- 
"Computer science is as much about computers as astronomy is about
  telescopes."                                        -- Edsgar Wybe Dijkstra



More information about the Wylug-help mailing list