Need refinement to minimal-bash-script
- From: problems@gmail
- Date: Sun, 30 Dec 2007 05:45:34 -0600
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.
.
- Follow-Ups:
- Re: Need refinement to minimal-bash-script
- From: s. keeling
- Re: Need refinement to minimal-bash-script
- Prev by Date: KDE 4 and the future of the KDE 3 series
- Next by Date: Re: Need refinement to minimal-bash-script
- Previous by thread: KDE 4 and the future of the KDE 3 series
- Next by thread: Re: Need refinement to minimal-bash-script
- Index(es):
Relevant Pages
|