Hello, very new to this and have to use tcsh (not a choice at the moment).
I need to convert files within sub directories. My foreach loops don't work.
Directories are as follow:
and so on.
My script works only for the first sub-001 and does not move on to the second sub-002. It perfectly executes the operation on my .nii file. (3dcopy)
What am I doing wrong with the foreach that should go through all sub-*?
Moderator's Comments:
MOD's comment: Please do wrap your samples, codes in [CODE]........[/CODE] tags as per forum rules.
Last edited by RavinderSingh13; 02-21-2019 at 12:41 AM..
Hi,
I have 2 files with contents in them and I need to compare each item in each file.
File1:
item4
item5
File2:
item2
item3
item5
item6
The items names can be of different lengths.
If the items in the File1 are not in File2,
delete the missing item in File1.
The resulting... (12 Replies)
Hello Guys,
Sometimes it is necessary to add more swap space after installation. For example, you may upgrade the amount of RAM in your system from 64 MB to 128 MB, but there is only 128 MB of swap space. It might be advantageous to increase the amount of swap space to 256 MB if you perform... (11 Replies)
OS=HP-UX ksh
The following works, except I want to include the <start> and <end> in the output.
awk -F '<start>' 'BEGIN{RS="<end>"; OFS="\n"; ORS=""} {print $2} somefile.log'
The following work in bash but not in ksh
sed -n '/^<start>/,/^<end>/{/LABEL$/!p}' somefile.log (4 Replies)
Hi,
I'm a complete newbie so bear with me.
I have a directory (and sub-dirs) full of .doc, .xls files.
What I'm trying to do is do a single search within the files (i.e. within each .doc etc) for occurrences of multiple items e.g. apples, pears, grapes, bananas.
Basically I'd provide a... (4 Replies)
Hi,
I've a list in the following format:
Empdept filedetails buildingNo Area
AAA 444 2 juy
AAA 544 2 kui
AAA 567 4 poi
AAA 734 5 oiu
AAA 444 ... (2 Replies)
Hi everyone.
I have a lot of programs i want to run on some data files, they need to be done sequentially. Often the output from one program is the input for the next.
e.g
$ progA data1 > data1.A
$ progB data1.A > data1.AB
$ progC data1.AB > data1.ABC
repeat on data2, 3, 4, 5, 6 etc
... (4 Replies)
Little lost here, I am trying to search a line for both values after the $ signs. My ultimate goal is to get percertage.
<?php
$string = "Something on sale for $4 and orginal price $10";
$strstr =. strstr($string, '$');
$strrchr =. strrchr($string, '$');
echo "$strstr<br>";
echo... (1 Reply)
Hi everyone! So I have a listView on my Form named "officeView" I already have the code to add and update info into it, but Im having troubles deleting items out of it. :/
Now I know how to delete an Item from the listView, but I want the item before the deleted item to become automatically... (0 Replies)
Hi,
Let's I have the following strings (md5):
07177edf8261d28c6a003e583fcbe38c
0717c0037b3a20fc0f0998e673f228d5
0717d611a5d24374628b98e17fd00977,0717d611a5d24374628b98e17fd00977
07189a18afdae558bb5aadfe602e4a91
0719e97d481c239667f38a3e166bed74
071af3225fe50a1fdbb42c43aac313cc... (4 Replies)
Hi there,
Here is my checklist of items,
4.1.1 Alerter
4.1.2 Client Services for Netware
4.1.3 Clipbook
4.1.4 Fax Service
4.1.5 File Replication
4.1.6 File Services for Macintosh
4.1.7 FTP Publishing Service
4.1.8 Help and Support
4.1.9 HTTP SSL
4.1.10 IIS Admin Service ... (1 Reply)
Discussion started by: alvinoo
1 Replies
LEARN ABOUT DEBIAN
mnc2nii
mnc2mnc(1)mnc2mnc(1)NAME
mnc2nii - convert a MINC format file to a NIfTI-1 or Analyze format file.
SYNOPSIS
mnc2nii [<options>] <infile.mnc> <outfile.mnc>
mnc2nii -help
DESCRIPTION
The mnc2nii command is used to convert MINC format files to either NIfTI-1 or Analyze format. The NIfTI-1 format was developed by the mem-
bers of the Neuroinformatics Technology Initiative's Data Format Working Group (DFWG). The NIfTI-1 format is based upon the Mayo Clinic's
Analyze 7.5 format.
The name of the program is derived from the common filename suffixes used for NIfTI-1 and MINC files. NIfTI-1 defines two possible for-
mats, a "header plus raw image" 2-file format, and a single-file format that includes both header information and the image data. As with
Analyze 7.5, the 2-file format consists of one file with the suffix ".hdr" and another file with the extension ".img". In NIfTI-1 single-
file format, the two files may be combined into a single file with a ".nii" filename suffix.
In addition to the NIfTI-1 formats, mnc2nii can convert MINC files to the Analyze 7.5 format.
OPTIONS
Note that options can be specified in abbreviated form (as long as they are unique) and can be given anywhere on the command line.
Output file format-dual Save file in NIfTI-1 two-file format (.hdr and .img)
-ASCII Save file in non-standard NIfTI-1 ASCII file format
-nii Save file in NIfTI-1 single-file format (.nii)
-analyze
Save file in Analyze 7.5 compatible format
Output voxel format-float Save voxels in 32-bit floating point format
-double
Save voxels in 64-bit floating point format
-byte Save voxels in 8-bit integer format
-short Save voxels in 16-bit integer format
-int Save voxels in 32-bit integer format
-signed
Save voxels in signed (2's complement) integer format
-unsigned
Save voxels in unsigned integer format
Other options-noscanrange
Don't scan data to determine valid range.
-quiet Quiet operation - do not print progress or debugging information.
Generic options for all commands-help Print summary of command-line options and abort
-version
Print the program and library versions and abort
KNOWN BUGS
Current handling of NIfTI-1 qform and sform coordinate transforms should probably be revised as the NIfTI group clarifies the correct usage
of these fields.
SEE ALSO
nii2mnc
AUTHOR
Robert Vincent (bert@bic.mni.mcgill.ca) with assistance from the NIfTI-1 library authored by Robert Cox et al.
COPYRIGHTS
Copyrights 2005 by Robert Vincent for the Montreal Neurological Institute.
$Revision: 1.3 $ Apr 22 2005 mnc2mnc(1)