[PLUG] perl question
Pete Lancashire
pete at petelancashire.com
Mon Mar 5 18:26:36 UTC 2012
my brain this morning is blocked on this one
I have a data file
cpu01 value value value
cpu02 value value value
cpu03 value value value
...
cpu01 value value value
cpu02 value value value
cpu03 value value value
...
cpu01 value value value
cpu02 value value value
cpu03 value value value
...
column 1 can be cpu\d+ and cpu_all
I want to open files for writing, one for each unique value in the first column.
so that if the value f the data in the first column is "cpu01" then
write to the file
with the FH of $cpu01
This has to be simple ...
-pete
More information about the PLUG
mailing list