[Gllug] Bash quote woes!

Joachim Gleissner joe at ugh.de
Tue Jan 27 17:11:35 UTC 2009


Hi,

On Tue, Jan 27, 2009 at 04:41:16PM +0000, Benjamin Donnachie wrote:
> I'd be very very VERY grateful if someone could please help with the
> following bash fragment:
> 
[...]
> 
> connecteddrives
> 
> echo $connecteddrives
> 
> Xdialog --backtitle "Proof of concept Hard Drive erase program"
> --title "HD Nuke" \
>         --item-help --separate-output --checklist "Please select the
> drives you wish to nuke\n \
> \nThis program will attempt to use the on-board security erase command.  \
> If not available, it will fall back to over-writing" 30 61 6 \
> $connecteddrives

This should do:

eval Xdialog --backtitle \"Proof of concept Hard Drive erase program\" --title \"HD Nuke\" \
--item-help --separate-output --checklist \"Please select the drives you wish to nuke\n \nThis program will attempt to use the on-board security erase command. If not available, it will fall back to over-writing\" 30 61 6 \
$connecteddrives


Joe
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list