Search Results

Search: Posts Made By: mohamadreza
4,877
Posted By RudiC
I guess you should read and throw away the header...
I guess you should read and throw away the header line:
TAB=$(printf "\t")
{ read x; IFS=$TAB read x x x max_x max_y max_z x; } < input_file
fslmaths InputImage -mul 0 -add 1 -roi "$max_x" 1...
4,877
Posted By Scrutinizer
To read only the first row you can leave out the...
To read only the first row you can leave out the while loop, you could try something like:


TAB=$(printf "\t")
IFS=$TAB read x x x max_x max_y max_z x < input_file
fslmaths InputImage -mul 0...
4,877
Posted By Scrutinizer
Try: TAB=$(printf "\t") while IFS=$TAB read...
Try:
TAB=$(printf "\t")
while IFS=$TAB read ci voxels max max_x max_y max_z cog_x cog_y cog_z
do
echo "$max_x, $max_y, $max_z"
done < infile


If you only need those the three values you...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 03:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy