I am new to processing large amount of data and I thought someone here might could help. The structure is as follows:
I have 1 parent folder called "100" Within this parent folder I have 10 subfolders, labeled PKA1, PKA2, etc. up to PKA10.
Within EACH of these I have 30 subsubdirectories relative to initial parent folder:
1eV, 2eV, 3eV, up to 30eV
In each one of these folder I have a file called PKA.dump.
I would like to copy the 20th row of each PKA.dump folder and dump into an array for easy processing. I am skeptical that such a feat is possible, it seems very complicated to me. I joined just so I could ask this question. I figured the people here would have amongst the best idea to solve this problem.
My hope would be that I would end up with 30 arrays, each with 30 different rows of data
EDIT: Here is my attempt at a code: I hae tried editing to match my needs. How can I specify the 20th row?
find foo -type f -name PKA.dump |
while read file; do
line=$(echo $file | sed 's/.*PKA.dump\([0-9]*\)$/\1/')
sed -n -e "$line {p; q}" $file
done