09-17-2007
getting totals
For any command that returns a number of lines EG 'grep INFO' you can cound the number of lines with wc -l
EG
grep INFO | wc -l
this will return the number of lines matching INFO
8 More Discussions You Might Find Interesting
1. What is on Your Mind?
Welcome to "The trouble with...." with your host, ZazzyBob.
Todays offering - "The trouble with letting other people host your website"
I use a certain web hosting service, who shall of course remain nameless here.
They are running PHP 4.3.10
I decide to write a script to test their PHP... (6 Replies)
Discussion started by: zazzybob
6 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
having read lots of posts about SU I don't quiet understand this :
I'm doing regular backups of my database (u betta do) and therefore use su - username -c "sqlscript special data_base" in a unixscript which is even using cron. (yep!)
Now I need some other script, still with this... (4 Replies)
Discussion started by: nulnul7
4 Replies
3. UNIX for Dummies Questions & Answers
Hello guys.
Well, on this exercise i need the average "chargeAmount" per hour (for each hour).
with this code :
cat getusagesummarywrongmatch | grep -iv MOU2GRTObject | cut -d'|' -f4,14 | grep -i chargeamount | cut -d' ' -f2
http://img227.imageshack.us/img227/5889/65969235do0.jpg
i got... (2 Replies)
Discussion started by: EnioMarques
2 Replies
4. Shell Programming and Scripting
Hi, 'm trying to do an exercicise, and one part is:
ls -l $1 | awk '
BEGIN {
max = $5;
}
{
if ($5 > max){
max = $5;
}
}
END {
print "Tamanio mayor fichero = " max; }'
# Imprimimos ahora el menor tamaņo de fichero
ls -l $1 | awk '... (4 Replies)
Discussion started by: Phass
4 Replies
5. Homework & Coursework Questions
you are to write a program which will read in a tax rate (as a percentage) and the prices of 5 items. the program is to calculate the total price, before tax, of the items and then the tax payable on those items, and then the total amount due. the tax payable is computed by appliying the tax rate... (1 Reply)
Discussion started by: bunkercrazy
1 Replies
6. Shell Programming and Scripting
hello everyone!:)
I have an exercise which I think is difficult for beginner like me. Here is the exercise
Create a shell script, which takes a directory as command line argument.
Script displays ten first lines from every text file in that directory. After
displaying the lines from the... (1 Reply)
Discussion started by: googlevn
1 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am learning unix. I want to practice few small excercises. Please suggest me some goor URL to practice.
Thanks in advance. (1 Reply)
Discussion started by: stew
1 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a shell script program that will input a name and a mark between 0 and 100. The program then displays the... (9 Replies)
Discussion started by: UniverseCloud
9 Replies
LEARN ABOUT DEBIAN
zlag2c.f
zlag2c.f(3) LAPACK zlag2c.f(3)
NAME
zlag2c.f -
SYNOPSIS
Functions/Subroutines
subroutine zlag2c (M, N, A, LDA, SA, LDSA, INFO)
ZLAG2C
Function/Subroutine Documentation
subroutine zlag2c (integerM, integerN, complex*16, dimension( lda, * )A, integerLDA, complex, dimension( ldsa, * )SA, integerLDSA, integerINFO)
ZLAG2C
Purpose:
ZLAG2C converts a COMPLEX*16 matrix, SA, to a COMPLEX matrix, A.
RMAX is the overflow for the SINGLE PRECISION arithmetic
ZLAG2C checks that all the entries of A are between -RMAX and
RMAX. If not the convertion is aborted and a flag is raised.
This is an auxiliary routine so there is no argument checking.
Parameters:
M
M is INTEGER
The number of lines of the matrix A. M >= 0.
N
N is INTEGER
The number of columns of the matrix A. N >= 0.
A
A is COMPLEX*16 array, dimension (LDA,N)
On entry, the M-by-N coefficient matrix A.
LDA
LDA is INTEGER
The leading dimension of the array A. LDA >= max(1,M).
SA
SA is COMPLEX array, dimension (LDSA,N)
On exit, if INFO=0, the M-by-N coefficient matrix SA; if
INFO>0, the content of SA is unspecified.
LDSA
LDSA is INTEGER
The leading dimension of the array SA. LDSA >= max(1,M).
INFO
INFO is INTEGER
= 0: successful exit.
= 1: an entry of the matrix A is greater than the SINGLE
PRECISION overflow threshold, in this case, the content
of SA in exit is unspecified.
Author:
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date:
November 2011
Definition at line 108 of file zlag2c.f.
Author
Generated automatically by Doxygen for LAPACK from the source code.
Version 3.4.1 Sun May 26 2013 zlag2c.f(3)