10-28-2011
You are genius Corona. I can't believe this was done without a loop.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
I was trying to write a miniature shell (ie, command line interpreter) to implement the features like 'IO Redirection' and 'Pipe line fileters'.
Can anyone help me with sample shell sript to implement the above features.
cheers
supong (2 Replies)
Discussion started by: supong
2 Replies
2. Shell Programming and Scripting
Hi,
I want to echo the 15th line from a file named as abc.txt, also i want to echo only the values in that line not the line number.
Thanks in advance:) (4 Replies)
Discussion started by: tushar_tus
4 Replies
3. Shell Programming and Scripting
Hi All,
I have a file which contains data as below
When we see no pipe character in the line. append those lines to the previous line with pipe character till we get the next line with pipe character with ~(concat with ~)
Input file looks like:
1080530944|001|john.l.bonner|Acknowledge|CN... (11 Replies)
Discussion started by: ainuddin
11 Replies
4. Shell Programming and Scripting
Hi,
Plz help.
input line
1;20100403;400|2;20100403;4|3;20290903;400|4;20290903;0|5;20290903;0|9;20100304;0|10;20100304;0|11;20100402;0|18;20100304;0
expected output
1;20100403;400
2;20100403;4
3;20290903;400
4;20290903;0
5;20290903;0
9;20100304;0
10;20100304;0
11;20100402;0... (4 Replies)
Discussion started by: suresh3566
4 Replies
5. Shell Programming and Scripting
Hi guys , i need help so bad on this issue..
Basically i have to delete the line continuation symbol of first column variable and add the truncated part of that word in next line to first line.
here i written sample 3 lines but originally i have bunch of lines in that file.
client1_day- ... (3 Replies)
Discussion started by: chrismorgan
3 Replies
6. Shell Programming and Scripting
Hi,
I am trying to put together a Korn Shell script to insert at a specific line.
The system we use is SunOS 5.10
I can get the line number by using:-
num=`sed -n '/export ENV/=' ./tmp.file`
Not getting much headway using the above variable's value to insert -
export SYBASE=/opt/sybase15... (5 Replies)
Discussion started by: aj8200
5 Replies
7. Shell Programming and Scripting
cat file |grep -v "xx" | grep -v "yy" |grep -v "zz" (3 Replies)
Discussion started by: yanglei_fage
3 Replies
8. Shell Programming and Scripting
Hi all,
I have a script which should take more than 9 command line inputs while running. Likescript.sh a s d f g h j j k l o p i u y t r e w
Now in the script if I have to access one of the input which is at position after 9, in this case say 'p' then how can I do that?
echo $12 will not work... (15 Replies)
Discussion started by: pat_pramod
15 Replies
9. Shell Programming and Scripting
Sed command to replace a line in a file using line number from the output of a pipe.
Is it possible to replace a whole line piped from someother command into a file at paritcular line...
here is some basic execution flow..
the line number is 412
lineNo=412
Now i have a line... (1 Reply)
Discussion started by: vivek d r
1 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
i want to write a shell script read below file line by line and want to exclude the lines which contains empty value for MOUNTPOINT field.
i am using centos 7 Operating system.
want to read below file.
# cat /tmp/d5
NAME="/dev/sda" TYPE="disk" SIZE="60G" OWNER="root"... (4 Replies)
Discussion started by: balu1234
4 Replies
LEARN ABOUT DEBIAN
mincinfo
MINCINFO(1) MINC User's Guide MINCINFO(1)
NAME
mincinfo - print out specified information about a minc file
SYNOPSIS
mincinfo [<options>] <file> [<file> ...]
DESCRIPTION
mincinfo will print out either a general description of a minc file (type, sign and range of data, plus a brief description of dimensions
and their order), or specific information about dimensions, variables or attributes in the file. This program can be very useful for build-
ing shell scripts that access minc files.
All information given by mincinfo is presented as read from the file with no transformation. This means that start and step values, for
example, are not in the world coordinate system. To display the start values for a file in world coordinates, use voxeltoworld.
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. Dimen-
sions, variables and attributes are all specified by name. Attributes are specified by variable:attribute where variable can be omitted to
specify global attributes. More than one option can be specified, in which case the return value from each option is printed on a separate
line (-image_info prints on many lines) in the order of the options on the command line.
-image_info
Print out the default general information about the file. This information includes the type, sign and range of the pixel data, the
order of the dimensions, and a list of dimensions giving name, length, start and step for each one.
-dimnames
Print out a space-separated list of the dimensions in the file.
-varnames
Print out a space-separated list of the variables in the file.
-dimlength dimension
Print the length of the specified dimension.
-vartype variable
Print the type of the variable.
-vardims variable
Print a space-separated list of the dimensions that subscript the variable (in C order).
-varatts variable
Print a space-separated list of the attribute names for the specified variable.
-varvalues variable
Print a newline-separated list of the values of the specified variable.
-atttype variable:attribute
Print out the type of the specified attribute.
-attvalue variable:attribute
Print out a space-separated list of the values of the specified attribute.
-error_string string
Specifies a string to print out if an error occurs. This will cause the program to exit with normal status. The default is to print
an appropriate error message and exit with an error status.
-help Print summary of command-line options and abort.
-version
Print the program's version number and exit.
EXAMPLES
Print out standard information about a minc file.
mincinfo file.mnc
Print out contents of global history attribute.
mincinfo file.mnc -attvalue :history
Print out step value for x dimension, setting the default value to 1.
mincinfo file.mnc -attvalue xspace:step -error 1
Print out the step values for x, y and z, setting the default value to 1.
mincinfo file.mnc -error 1
-attvalue xspace:step
-attvalue yspace:step
-attvalue zspace:step
Print out the names of the dimensions subscripting the image variable.
mincinfo file.mnc -vardims image
AUTHOR
Peter Neelin
COPYRIGHTS
Copyright (C) 1993 by Peter Neelin
SEE ALSO
voxeltoworld(1)
$Date: 2004-05-20 21:52:08 $ MINCINFO(1)