Re: pipe multiple pages in lynx
- From: matt_left_coast <not@xxxxxxxxxx>
- Date: Sun, 08 Jan 2006 12:44:31 -0800
Kenny McCormack wrote:
> In article <XaidnX9hYaTdMl3enZ2dnUVZ_sWdnZ2d@xxxxxxx>,
> matt_left_coast <not@xxxxxxxxxx> wrote:
>>sheller wrote:
>>
>>> I wish to add the contents of the follwing two or many
>>> pages into one (say through piping) at one
>>> stroke, without storing in any temporary file.
>>> Any idea please? Thanks.
> ...
>>#!/bin/bash
>>lynx -dump http://www/stocks/a.htm > out.file
>>lynx -dump http://www/stocks/b.htm >> out.file
>>lynx -dump http://www/stocks/c.htm >> out.file
>
> What part of "without storing in any temporary file" is causing you
> trouble?
Dude, If he wants to send the output to the screen, his script would do
exactly what he wanted, so he is obviously NOT asking to send it to the
screen. Try it.
Then, ever think there might be a difference between a temp file and an
output file? You know `cat tempfile1 tempfile2 > output file; rm -rf
tempfile*`????? The "temp" file is only used to create the concatenated
final output file which is not actually "temporary". Gee, guess that is
over your head.
Thus, it is logical that he is asking to send the output to a file, else why
bother asking the question? Since his script would indeed work if all he
wanted was outputting to the screen, I am assuming he is trying to avoid
something like:
lynx -dump http://www/stocks/a.htm > tmpfile1.file
lynx -dump http://www/stocks/b.htm > tmpfile2.file
lynx -dump http://www/stocks/c.htm > tmpfile3.file
cat tempfile* > archivefile.save
rm -rf tempfile*
Where temp files are actual TEMPORARY and the output file is NOT considered
"temporary" but rather as a final data file.
Gezzz.
--
.
- References:
- pipe multiple pages in lynx
- From: sheller
- Re: pipe multiple pages in lynx
- From: matt_left_coast
- Re: pipe multiple pages in lynx
- From: Kenny McCormack
- pipe multiple pages in lynx
- Prev by Date: Re: search string in other string
- Next by Date: Re: pipe multiple pages in lynx
- Previous by thread: Re: pipe multiple pages in lynx
- Next by thread: Re: pipe multiple pages in lynx
- Index(es):
Relevant Pages
|