Hello Cristoforo,
I am trying to read n number of *.txt files as argument inputs. Each file contains infinite n number of lines in the file. I want to extract the the 4th element of each line. Each element of each line is separated with a column ":".
Line example:
Line_1:Line_1_1:Line_1_2:Line_1_3:Line_1_4After collecting each element from each line I want to put them on an array so I am able to manipulate the values of each element.
The reason that I am using array of arrays is that I do not know the number of *.txt files that I am going to use.
As a second step I am trying to print the collected values based on order of the files separated with a space in between.
Sample of the expected output:
Line_1_3 Line_3_3 Line_4_3 Line_2_3 Line_5_3 Line_6_3 Line_7_3
Each column represents the *.txt file that was loaded. For example if we had loaded the sample.txt it would be column 1, sample_2.txt would be column 2 and sample_3.txt would be column 3.
I hope this explains more and produces less confusion.
Thanks for your time and effort to assist me.
In reply to Re^4: How to concatenate a generic array of arrays and an array of hashes
by thanos1983
in thread How to concatenate a generic array of arrays and an array of hashes
by thanos1983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |