* Thomas Adam <[EMAIL PROTECTED]> [2008-07-29 22:20:28 +0100]:

>2008/7/29 Ethan Mallove <[EMAIL PROTECTED]>:
>> I posted a tip on getting (e)links browser support for the
>> VIM Netrw plug-in (see below). Just thought I'd post it here
>> on the off-chance that someone here might either find it
>> useful or have suggestions for improving it.
>
>I do, yes:
>
>#!/bin/sh
>tempfile=`echo $* | awk '{print $1}'`
>url=`echo $* | awk '{print $2}'`
>elinks -dump $url > $tempfile
>
>
>1.  You mean "$@" over $*.

Am I missing something?  Why parse the parameters with awk in the first
place?  The shell already has variables for each of the positional
parameters, so I don't see why we need awk to get at them. 

I.e, why not simply do the following:

#!/bin/sh 
elinks -dump $2 > $1

_______________________________________________
elinks-users mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-users

Reply via email to