hi,

what do you mean by <model>? was it a tag or an argument?

if it is a tag (w/o end tags), you may process it with a tool called
"normalize" (you may then validate it against a dtd,) then create
an xslt filter to tranform it to your desired xml output. then validate
it again. *whew.


if not, you may use a bash script similar to this:

exec < /path/to/file
while read line
do

    #process the line here

done




On 6/23/06, jhuniepi < [EMAIL PROTECTED]> wrote:
hello to all,

i have a list of text files in /home/cj/test/
the files are in the format <model>,,,<serial> of 1000 lines each.
these are text files. i wil read these one by one, line by line, and
process each line. so that i can out put to xml file in the format
below:


how to do this in bash. please dont use perl.


_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to