[plug] Dumping invalid files ?

Campbell, David (Ex AS17) david.j.campbell at honeywell.com
Thu Dec 14 07:33:13 WST 2000


> From:	Mike [SMTP:erazmus at wantree.com.au]
> Subject:	[plug] Dumping invalid files ?
> 
>Hi guys,
>
>Sorry that this is not a typical linux question its a Unix one but,
>what the heck - some bright spark would know ;~o
>
>But when I specify that in lynx it objects, what should I put in place
>of the literal filename to get the destination file correctly:-
>
>lynx -dump http://www.someplace.com/Part one[1].zip > Part-1.zip

Replace unsupported characters with %## where ## is the hex code
for the letter. Hence the above should be:

http://www.someplace.com/Part%20one[1].zip

You may need to escape the '[' & ']' so that bash doesn't maul the
parameter (eg: '\[' & '\]'). You may also want to place the URL in
quotes (single quote, found near the ENTER key). You may find
just doing this is enough for lynx to work (bash breaks the
command line into tokens based on white space, the single quotes
forces the string to appear as a single token (with embedded
white space).

Finally be aware that strings in reverse single quotes (eg: the one
on the '~' key) are executed in a sub shell and the returned string
is used as command line arguments.

David Campbell



More information about the plug mailing list