[H-GEN] Trying to code something Scriptable?
Greg Black
gjb at gbch.net
Mon Jul 16 09:49:42 EDT 2007
On 2007-07-16, De Crow wrote:
> I have a bunch of files, some include the data that I want and some that
> don't. I want to retrieve the data and output it to a Single file. Is there
> anyway to automate this?
Of course there is, probably dozens of ways.
> Data in the files that have data is in the format:
>
> <Junk I don't need>Name" value="<Data Part1>"<Junk I don't need>to"
> value="<Data Part2>"<Junk I don't need>
This data description is probably inadequate for anybody to produce a
reliable suggestion, but once the real data (including the detailed and
exact description of everything that's in the various files) is at hand,
this should be a trivial task with sed, awk, perl, python, or any poison
of your choice.
> Is something like this easily scripted,
Yes, provided the data is adequately described and suitably regular.
> or do I have to go and figure out
> how to code it in C or something(I already basically know how to do a single
> file in C)?
If you already know how to do it in C, why the question? Just do it.
Cheers, Greg
More information about the General
mailing list