Can i copy the output of system() to an array?
Hi,
is it possible to write the output of a System() command to an array instead of the standard output?
i am trying to compute the cksum values of individual lines in a text file and store them into an array.
what is the best way to do this?
i tried running a loop to do the following:
1. reading each line into a file,
2. computing the checksum of that file,
3. writing the cksum of this to another file
4. and reading out of this file.
this seems to be a rather cumbersome method, also, it doesn't work.
what is the best way to do this?
thanks!