07-05-2012
I don't know what you mean by the UK comment but I hope it is not derogatory. The most important thing which is what I need to run is the itgen............I created perm just to save that program. This is an animal breeder's took kit that is preprogrammed to run that way. what it does is to iterate for 500 rounds-r rhs is the name of the file on the right hand side, -n con is another file and -b beta is the answer I am looking for. It is like this con*beta=rhs therefore, beta=con-1*rhs. So each line in file odon will pass through this program and beta will be produced. Unless I can create a script that can produce beta for each line and save it like beta0, beta1 etc, then I will have to manually do it myself. This is the script I tried for just one line:
while read line
do ./perm
done < odon #note that the file odon has one line 12 1 1 so only beta for the line will be produced
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How would I pass awk output to a perl variable?
For example, I want to save the value in the 4th column into the variable called test. My best guess is something as follow, but I am sure this isn't correct.
$test = system("awk '/NUMBER/{print \$4}' $_"); (8 Replies)
Discussion started by: userix
8 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I have a shell script containing a command string in the following format:
command1 | command2 | cut -c9-16
The output from this is a record number (using characters 9-16 of the original output string) e.g. ORD-1234
I wish to save this value to a variable for use in later commands... (4 Replies)
Discussion started by: philjo
4 Replies
3. UNIX for Dummies Questions & Answers
Good morning everyone,
i am looking to know how to save the output of a command and reuse it again within a script
i already tired this one but it didn't work
TEMPDIR=/dir1/dir2
My_command> $TEMPDIR/$TEMPFILE
rm $TEMPDIR/$TEMPFILE*
it keeps saying "cannot write to a... (15 Replies)
Discussion started by: Portabello
15 Replies
4. Shell Programming and Scripting
I am ssh to many servers to get some information... however sometimes the server is unreacheable and i am getting an error. I want to save that output to a file but I am not able to do so...
I want to be able to save output of bash into a file.. so when I run this command on a script
ssh... (5 Replies)
Discussion started by: eponcedeleonc
5 Replies
5. Shell Programming and Scripting
Hi all........
Plss do help me.......in a big trouble... :wall::wall::wall:
I have 3 directories named as :1. /home/shuchi/source
2./home/shuchi/destination
3./home/shuchi/filter
now the problem is /home/shuchi/source has say 2 files with extension .txt as given below :
A.txt
msisdn ... (5 Replies)
Discussion started by: ektubbe
5 Replies
6. Shell Programming and Scripting
Hi Experts,
I am having a requirement like this;
Input file
EIM_ACCT.ifb|1001|1005
EIM_ADDR.ifb|1002|1004
EIM_ABD.ifb|1009|1007
I want to read each line of this file and pass each line,one at a time,as an argument to another script.
eg;
1.read first line->store it to a file->call... (2 Replies)
Discussion started by: ashishpanchal85
2 Replies
7. Shell Programming and Scripting
Hi,
I have some output from 'ls' command and I want to loop over the output in a bash script. What would be a good way to go about it?
For example, if the output of the ls command gives me 'prefix1 prefix2 prefix3', how can I set a loop that will iterate over these?
many thanks! (5 Replies)
Discussion started by: pc2001
5 Replies
8. Shell Programming and Scripting
Hi,
i need help with a file creation of an output program. I've got a program that with #find creates an output for each files in a directory.
If i give this command :
-o spec$(date -u +%Y%m%dt%H%M)
it creates just one file, overwriting all the others since it is the creation date .... (2 Replies)
Discussion started by: Board27
2 Replies
9. Shell Programming and Scripting
Hi,
I am working on a script where I am adding adding colors to few of the info in the output.
Now , after that is done , I see colour codes in log files which I don't want to see.:mad::mad::mad::mad:
So , I tried using sed command in script as below which gives me o/p (new.log) as blank file... (7 Replies)
Discussion started by: Dream4649
7 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I've got a directory of about 6000 txt files that look like this:
a b c d
e f g h
k l m n
I need to execute a command on them to combine them and, in the end, have one big file with all the needed columns taken form all the 6000 files. I've got the "combining" program, but my problem... (26 Replies)
Discussion started by: zajtat
26 Replies
LEARN ABOUT CENTOS
zlarfgp
zlarfgp.f(3) LAPACK zlarfgp.f(3)
NAME
zlarfgp.f -
SYNOPSIS
Functions/Subroutines
subroutine zlarfgp (N, ALPHA, X, INCX, TAU)
ZLARFGP generates an elementary reflector (Householder matrix) with non-negatibe beta.
Function/Subroutine Documentation
subroutine zlarfgp (integerN, complex*16ALPHA, complex*16, dimension( * )X, integerINCX, complex*16TAU)
ZLARFGP generates an elementary reflector (Householder matrix) with non-negatibe beta.
Purpose:
ZLARFGP generates a complex elementary reflector H of order n, such
that
H**H * ( alpha ) = ( beta ), H**H * H = I.
( x ) ( 0 )
where alpha and beta are scalars, beta is real and non-negative, and
x is an (n-1)-element complex vector. H is represented in the form
H = I - tau * ( 1 ) * ( 1 v**H ) ,
( v )
where tau is a complex scalar and v is a complex (n-1)-element
vector. Note that H is not hermitian.
If the elements of x are all zero and alpha is real, then tau = 0
and H is taken to be the unit matrix.
Parameters:
N
N is INTEGER
The order of the elementary reflector.
ALPHA
ALPHA is COMPLEX*16
On entry, the value alpha.
On exit, it is overwritten with the value beta.
X
X is COMPLEX*16 array, dimension
(1+(N-2)*abs(INCX))
On entry, the vector x.
On exit, it is overwritten with the vector v.
INCX
INCX is INTEGER
The increment between elements of X. INCX > 0.
TAU
TAU is COMPLEX*16
The value tau.
Author:
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
September 2012
Definition at line 105 of file zlarfgp.f.
Author
Generated automatically by Doxygen for LAPACK from the source code.
Version 3.4.2 Tue Sep 25 2012 zlarfgp.f(3)