I have a series of .txt files with tables of numbers, and I extract form each file the number I want. Example:
for f in $(find . -name "E_total_conv.txt"); do cat $f | tail -1 | awk '{print $2}' ; done
The output:
-1261.21295697266896
-1261.21748935324558
-1261.21885728710254
-1261.21737642551761
-1261.21337619301949
-1261.20719583615892
What I want is to add a first colum which will be used as the labels for the x axis when plotting with gnuplot. I would like to know how can sort of insert a list of strings there as a column, and better - how can dictate some sort of mathematical list to be inserted? I mean like "even numbers from 1 to 10", and so on.
Example for requested output:
0.0 -1261.21295697266896
0.2 -1261.21748935324558
0.4 -1261.21885728710254
0.6 -1261.21737642551761
0.8 -1261.21337619301949
1.0 -1261.20719583615892