The outpout of the command:
3dmaskave -mask mask_right+orig -drange 28.70 1000 ASR_motorio_stats+orig[10] > maskave
is the file maskave, for example:
28.8171 [2 voxels]
Now, I would to create a file with only the number of voxels (2, in this example).
With the command:
awk '{print $2}' maskave > n_sx
I create the file n_sx, but this is:
[2
and not only
2
like I would.
How can I do to obtain a file n_sx with only the number of voxels?
Thanks for any idea.
Giovanni