From: | Ash Wyllie |
Date: | 25 Jun 2001 at 15:46:09 |
Subject: | Re: how do batch process 350 html files? |
Gently extracted from the mind of Terry Chadban;
>Hello sarkis and all,
>On 25-Jun-01, you wrote
>about [arexx] how do batch process 350 html files?:
>> have a volume of 350 files to batch process ..
>> going to look at dos commands
>I have a related problem which hopefully someone a bit more
>knowledgable can help with as well - I need to batch convert a number
>of HTML files into a format suitable for import into a database or
>spreadsheet program - Comma Separated Values would probably be the
>best option. In my case the HTML files are in a columnal form (output
>from a database), so it SOUNDS easy enough in theory, but so far I
>haven't found a solution. HTTX will strip all the HTML tags and give
>clean, columnal format, but how do I convert to a format suitable for
>database or spreadsheet import, and most importantly, can it be done
>in a batch mode, the way that Sarkis is talking about.
Terry, you might consider taking an entry level programming class. That would
help you understand the manuals.
You've got two problems here. Findings and reading a set of files.
Then writing formated data to one or more neew files.
Assuming they are in one directory.
List is your friend. Study it well. Take a hard look at lformat.
You will have something like this. Syntax should be checked.
"run list >pipe:htmllist #?html lformat %N"
call open("fh", "pipe"htmllist","R")
name = readline("fh")
do while ~eof("FH")
/* read in the file "name" */
/* do what you want to it */
/* and write the result */
name = readline("fh")
end
call close("fh")
-ash
for assistance dial MYCROFTXXX
ARexx mailing list - No flames, no overquoting, no crossposting.
Unsub: Blank mail to mailto:arexx-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/