Wow! Thank you for taking the time to write great explanations! I have printed it out and will re-read everything to really understand it.
Instead of creating new threads, is it okay if I keep posting new questions in this thread?
If so, I have a question on creating variables. I have tried to research and come up with a solution (to the text quoted below) on my own but I do not know if I am on the right track. If possible could you tell me if I am moving in the right direction?
Quote:
So as far as trying to distinguish between "100_eddy_corrected_brain.nii.gz" and "100_eddy_corrected_brain_mask.nii.gz" if you could define the first as a variable, say $eddy_file or something of the sort, you could pipe it through to a cut command defining a period as your delimiter and take everything in front of it, so something like:
{echo $eddy_file | cut -d. -f1}_mask.nii.gz
But that would depend on using the "set" command to create the variable.
I have come up with the following: though I am not sure what is meant by using the 'set' command.
The eddy_corrected_brain.txt is a text file with pathnames of all the files that match eddy_corrected_brain.nii.gz from the initial find command/results.
Hi,
I have a challenging task,in which i have to find the duplicate files by its name and size,then i need to take anyone of the file.Then i need to open the file and find for more than one pattern and count of that pattern.
Note:These are the samples of two files,but i can have more... (2 Replies)
Hello,
i wanna rename my files which names are written in movies.txt
films.txt = amovie
bmovie
cmovie
dmovie
emovie
and i wanna find this files and rename the files to 1_amovie
... (12 Replies)
I want to rename the files by taking part of the file and appending date to it. please help
e.g.
abc-390.csv
xyz-908.csv
desired format is abc_YYYYMMDD.csv
This is what I have but it is not working
for each in *.csv;
do
mv $each /abc/data/"`date '+test_%Y%M%M'`".csv
done (2 Replies)
Hi,
I have a very urgent requirement here. I have to find all files in the specified directory but not in the sub directories(The directory name is stored in a variable) which are older than the current date as well as current time and rename it as filename_yyyymmddhhmmss.ext and move it into a... (7 Replies)
Hello,
I wanted to rename one file where filename contains space.. How can i rename in unix?
The file name is ABC XYZ.TXT
I wanted to rename this file as ABCXYZ.TXT.
Any help is greatly appreciated...
Regards. (4 Replies)
Hi All
I have a folder that contains hundreds of file with a names
3.msa
4.msa
21.msa
6.msa
345.msa
456.msa
98.msa
...
...
...
I need rename each of this file by adding "core_" in the begiining of each file such as
core_3.msa
core_4.msa
core_21.msa (4 Replies)
Hi
i have to achieve the following
i have files as xyz001.csv, xyz002.csv.......xyz0025.csv in a folder, i need to keep xyz001.csv as it is
but want to remove the extra zero on filename from 10 say
xyz0010 should be renamed to xyz010
xyz0025 should be renamed as xyz025
Note xyz... (8 Replies)
Hello,
I am looking for a command line that will rename name files :
f700_abc_o_t_MASTERID_AS_AE_20130323.csv
like this
f700_abc_o_t_MASTERID_AS_AE_20130324.csv
The great idea could be to get the date stamp 20130323
and change any part of it, instead of just change the... (4 Replies)
Hi,
In sftp script to get files, I have to rename all the files which I am picking. Rename command does not work here. Is there any way to do this?
I am using #!/bin/ksh
For eg: sftp user@host <<EOF
cd /path
get *.txt
rename *.txt *.txt.done
... (7 Replies)
Discussion started by: jhilmil
7 Replies
LEARN ABOUT DEBIAN
vbim
vbim(1) The VoxBo Manual vbim(1)NAME
vbim - manipulate 3D and 4D volumes
SYNOPSIS
vbim <flag> ...
DESCRIPTION
vbim is part of the VoxBo suite of tools for brain image analysis.
vbim is a multi-purpose program that applies various simple manipulations to 3D and 4D images.
OPTIONS
vbim performs a set of operations, specified by option flags, in sequence. To get a complete list of available flags, run the program with
no arguments.
EXAMPLES
To get very basic info about a file:
vbim foo.nii -info
To get more detailed information about the data within a mask:
vbim foo.nii -regioninfo mask.nii
To apply a mask to a 3D image and write out the result:
vbim image.nii -mask mask.nii -write maskedimage.nii
To mask a 4D image:
vbim image.nii -mask mask.nii -write4D maskedimage.nii
To average a bunch of 3D volumes:
vbim *.nii.gz -average -write mean.nii.gz
To create a lesion count map from a set of lesion masks:
vbim *.nii -count -write count.nii.gz
To create a 4D volume (20x20x20 voxels, 32-bit int, 10 time points) of random data with a mean of 100 and sd of 10:
vbim -newvol 20 20 20 10 int32 -addnoise 100 10 -write3d myvol.nii
NOTES AVAILABILITY
Pre-built VoxBo binaries are available for Linux, OSX, and Cygwin, and via the NeuroDebian project (neuro.debian.net) for Debian deriva-
tives.
CAVEATS
VoxBo is provided with no warranty whatsoever.
AUTHOR
For an historical roster of the VoxBo development team, visit www.voxbo.org.
SEE ALSO
For detailed help on any VoxBo command-line program, run it with no arguments. For graphical programs, use the -h flag. For more help
with VoxBo, for information about the mailing list, or to report bugs, visit the web site at www.voxbo.org.
For information about file format support in VoxBo, see voxbo-fileformats(7). For general information about VoxBo, see voxbo(7).
VoxBo January, 2011 (v1.8.5) vbim(1)