10-14-2014
Quote:
Thanks Don (and Neutron too), that thought was actualy in mind, but only as
part of a filename.
That just solved my 2nd question, i still was fiddling around, me used the wrong quotes
EDIT:
Weird, the solved tag didnt put a [solved] prior to the threads title..
You can search on tags like solved, but they don't change the title of your thread. The solved tag is special in that it also has the side-effect of changing the color used when displaying the title of the thread from black to blue.
This User Gave Thanks to Don Cragun For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
When I type a command at the command line it supplies one result and the exact same command in a script
egrep '^01|^02|^03|^04' file > fileout
count = 29353
same count in the script yields a count of 23492
is there any reason this could be happening. (1 Reply)
Discussion started by: r1500
1 Replies
2. UNIX for Dummies Questions & Answers
I am performing a grep command and I need to know how to echo "NONE" or "0" to my file if grep does not find what i am looking for.
echo What i found >> My_File
grep "SOMETHING" >> My_File
I am sure this is easy, I am sort of new at this!
Thanks (2 Replies)
Discussion started by: jojojmac5
2 Replies
3. Shell Programming and Scripting
I want to print a colored line using bash. I want to print:
Smtp status
where "Smtp status" will be in yellow and will be in green.
Thanks. (2 Replies)
Discussion started by: proactiveaditya
2 Replies
4. Shell Programming and Scripting
#!/usr/bin/ksh
var1="Hi World"
var2="Morning"
var3=$(echo "$var1" \n "$var2")
echo $var3
var3=$(printf "$var1 \n $var2")
echo $var3
Output
Any way to get
in my $var3 ? (7 Replies)
Discussion started by: dahlia84
7 Replies
5. Shell Programming and Scripting
This may be little confusing. I have Script1, which pulls data from the system and creates another script(lets say script2). While I run script1 I need to add printf/echo statements for script2, so that when I run script2 I see those statement.
eg: script1 765
printf " display frame-$1 timeoffset... (2 Replies)
Discussion started by: miltonrods
2 Replies
6. Solaris
Hi,
I have issue with cron.
When i run script manually output is fine but when i add it to cron output file is not as same.
both file attach some junk charecter comming in cron output.
thanx
Jignesh (5 Replies)
Discussion started by: jkmistry
5 Replies
7. Shell Programming and Scripting
Hello script guru's
as i write more and more code i always block at managing output... either writing to standard out, writing to files via std out (log, temp file, etc). Don't get me wrong 99% of the time it DOES the job but maybe there is more efficient.
I'm writing a small script to... (2 Replies)
Discussion started by: maverick72
2 Replies
8. Linux
Hello,
For some reason i dont remember, i currently believe (but beeing unsure) that printf is available on more diffrent systems (unix, bsd, linux, ??) than echo is.
Could someone please enlighten me, whether this is true or not?
Thank you
PS:
I just found pages about the diffrences of... (3 Replies)
Discussion started by: sea
3 Replies
9. Shell Programming and Scripting
Heyas
I'm currently attempting to apply the code of tui-select to tui-list.
That is because tui-list simply made a 1 string list, while tui-select uses dynamicly up to 3 strings per line.
Anyway, so i copy pasted the code, and just made the changes marked with red....
Know that both scripts... (2 Replies)
Discussion started by: sea
2 Replies
10. Shell Programming and Scripting
Hello,
I've been trying to find the answer to this with Google and trying to browse the forums, but I haven't been able to come up with anything. If this has already been answered, please link me to the thread as I can't find it.
I've been asked to write a script that pulls a list of our CPE... (51 Replies)
Discussion started by: rwalker
51 Replies
LEARN ABOUT REDHAT
slagts
SLAGTS(l) ) SLAGTS(l)
NAME
SLAGTS - may be used to solve one of the systems of equations (T - lambda*I)*x = y or (T - lambda*I)'*x = y,
SYNOPSIS
SUBROUTINE SLAGTS( JOB, N, A, B, C, D, IN, Y, TOL, INFO )
INTEGER INFO, JOB, N
REAL TOL
INTEGER IN( * )
REAL A( * ), B( * ), C( * ), D( * ), Y( * )
PURPOSE
SLAGTS may be used to solve one of the systems of equations (T - lambda*I)*x = y or (T - lambda*I)'*x = y, where T is an n by n tridiagonal
matrix, for x, following the factorization of (T - lambda*I) as
(T - lambda*I) = P*L*U ,
by routine SLAGTF. The choice of equation to be solved is controlled by the argument JOB, and in each case there is an option to perturb
zero or very small diagonal elements of U, this option being intended for use in applications such as inverse iteration.
ARGUMENTS
JOB (input) INTEGER
Specifies the job to be performed by SLAGTS as follows:
= 1: The equations (T - lambda*I)x = y are to be solved, but diagonal elements of U are not to be perturbed. = -1: The equa-
tions (T - lambda*I)x = y are to be solved and, if overflow would otherwise occur, the diagonal elements of U are to be per-
turbed. See argument TOL below. = 2: The equations (T - lambda*I)'x = y are to be solved, but diagonal elements of U are not to
be perturbed. = -2: The equations (T - lambda*I)'x = y are to be solved and, if overflow would otherwise occur, the diagonal
elements of U are to be perturbed. See argument TOL below.
N (input) INTEGER
The order of the matrix T.
A (input) REAL array, dimension (N)
On entry, A must contain the diagonal elements of U as returned from SLAGTF.
B (input) REAL array, dimension (N-1)
On entry, B must contain the first super-diagonal elements of U as returned from SLAGTF.
C (input) REAL array, dimension (N-1)
On entry, C must contain the sub-diagonal elements of L as returned from SLAGTF.
D (input) REAL array, dimension (N-2)
On entry, D must contain the second super-diagonal elements of U as returned from SLAGTF.
IN (input) INTEGER array, dimension (N)
On entry, IN must contain details of the matrix P as returned from SLAGTF.
Y (input/output) REAL array, dimension (N)
On entry, the right hand side vector y. On exit, Y is overwritten by the solution vector x.
TOL (input/output) REAL
On entry, with JOB .lt. 0, TOL should be the minimum perturbation to be made to very small diagonal elements of U. TOL should
normally be chosen as about eps*norm(U), where eps is the relative machine precision, but if TOL is supplied as non-positive, then
it is reset to eps*max( abs( u(i,j) ) ). If JOB .gt. 0 then TOL is not referenced.
On exit, TOL is changed as described above, only if TOL is non-positive on entry. Otherwise TOL is unchanged.
INFO (output) INTEGER
= 0 : successful exit
element of the solution vector x. This can only occur when JOB is supplied as positive and either means that a diagonal element of
U is very small, or that the elements of the right-hand side vector y are very large.
LAPACK version 3.0 15 June 2000 SLAGTS(l)