Yes.
Appending to a file means adding to that file.
So the following will do what you want:
fslstats image1.nii -R -M -V > myfile.txt
fslstats image2.nii -R -M -V >> myfile.txt
fslstats image3.nii -R -M -V >> myfile.txt
This will save the output of all three commands,
in the correct order, in the file called myfile.txt
Hope that is clear.
All the best,
Mark
On 30 Jan 2010, at 08:45, Moran Artzi wrote:
> Hi,
> Sorry for asking again but- Can I save more then one line from the
> command line using ">"
> ie:
> fslstats image1.nii -R -M -V
> fslstats image2.nii -R -M -V
> fslstats image3.nii -R -M -V
> If so, how (using a short script)?
>
> Thanks
> Moran
>
>
>
> On Fri, Jan 29, 2010 at 9:52 AM, Mark Jenkinson
> <[log in to unmask]> wrote:
> Hi,
>
> In linux/unix/mac you can take the output of any
> command and put it into a text file using ">".
>
> That is:
> fslstats image1.nii -R -M -V > myfile.txt
>
> You can also append to a file with ">>".
> That is:
> fslstats image2.nii -R -M -V >> myfile.txt
>
> All the best,
> Mark
>
>
> On 29 Jan 2010, at 07:30, Moran Artzi wrote:
>
> Hi,
> Running scripts as:
> fslstats image1.nii -R -M -V
> fslstats image2.nii -R -M -V
> fslstats image3.nii -R -M -V
> How can I export (automatically) the fslstats results from the
> command line
> into txt file?
>
> Thanks
> Moran
>
>
|