C
Chris Petersen
Hello all, I have 2 files:
combo.txt which contains:
AAA.dat
BBB.dat
and
stats.txt which contains:
ID,STEP,NAME,DATE,SIZE
11,load,C:\Bin\combo.txt,20040404,1111 #note: only 2 "\"
11,move,C:\Bin\Log\combo.txt,20040404,1111 #note: 3 "\"
I'd like to create the following output.txt file:
load,AAA.dat,1111
load,BBB.dat,1111
move,AAA.dat,1111
move,BBB.dat,1111
I've created a shell solution for this, but believe perl could do this
much quicker, unfortunately I am still learning the language and would
love any advice to get the ball rolling.
Side Question:
Is there a way to store the output of system calls in scalars?
$asdf = system (echo hello);
print $asdf; #should print "hello";
Thanks in advance
combo.txt which contains:
AAA.dat
BBB.dat
and
stats.txt which contains:
ID,STEP,NAME,DATE,SIZE
11,load,C:\Bin\combo.txt,20040404,1111 #note: only 2 "\"
11,move,C:\Bin\Log\combo.txt,20040404,1111 #note: 3 "\"
I'd like to create the following output.txt file:
load,AAA.dat,1111
load,BBB.dat,1111
move,AAA.dat,1111
move,BBB.dat,1111
I've created a shell solution for this, but believe perl could do this
much quicker, unfortunately I am still learning the language and would
love any advice to get the ball rolling.
Side Question:
Is there a way to store the output of system calls in scalars?
$asdf = system (echo hello);
print $asdf; #should print "hello";
Thanks in advance