Need refinement to minimal-bash-script



With previous help from contributors to this group, I've got
a script which reads the URLs from a file and dumps/appends
the [lynx] contents to a file, for reading off-line.
Here's the script-line which has been working well:----
#!/bin/bash
for url in `cat NewsLst`; do lynx -dump "$url" >> accumNewsLst; done
----------
So now I want to avoid having to add the URL as a header and
a "<><><>..." as a end-marker for each fetch which is appended to
the accumulating-file.

And here's my failed attempt:-

for url in `cat urls.txt`; do
echo "<><><><><>" >> accumulation;
"$url" >> accumulation;
echo " == blank line ==" >> accumulation;
lynx -dump "$url" >> accumulation; done

Of course I [also] need to put the URL at the beginning and the
"<><><>..." after the: lynx -dump "$url" >> accumNewsLst.

Thanks for any feedback,

== Chris Glur.


.



Relevant Pages

  • Re: Filling a form using expect in Linux
    ... >>The platform on which this test script running is Linux. ... >>1) A http request will be send from the terminal ... I haven't seen lynx do that. ...
    (comp.lang.tcl)
  • Re: Stats for uk.religion.christian, 2008-12
    ... I see I don't appear in the section headed "Contributors by percentage ... "Contributors by percentage of quoted material in follow-ups", ... You also have no sig, which makes a difference as that's ... counted as original text by the script. ...
    (uk.religion.christian)
  • Re: Filling a form using expect in Linux
    ... >I am writing a test automation script in tcl/tk and expect. ... >The platform on which this test script running is Linux. ... >I am using lynx browser in Linux. ...
    (comp.lang.tcl)
  • Re: lynx and google.com
    ... lynx worked up until last week. ... > it's using HTTP/1.0 and google stopped supporting it? ... I use this script to get around google's text ads: ... > Try my little script, keep a small terminal open beside Moz and use ...
    (Debian-User)
  • Re: lynx thru cron - oddities
    ... > We run a shell script that uses lynx to automatically check ... > that our web services are up and running - lynx dumps the ...
    (comp.unix.shell)