10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.5 (Maipo)
I have this script that will monitor filesystems and send me e-amil alerts.
MAIL_SUBJ="filesystems monitor on "$(hostname)
... (3 Replies)
Discussion started by: danielshell
What is load average and how is it computed in Solaris 10?
What are the different ranges for normal, warning and danger signs?
Sunil Kumar (3 Replies)
Discussion started by: msgforsunil
3. Shell Programming and Scripting
Hello friends,I am new to Unix programming.
how do I achieve the following in Unix shell script (I am running ksh on AIX)
extract the number from name of file?
My file format is like "LongFileName-1234.020614-221030.txt"
now I want to extract value which is between (-) hyphen and (.) dot... (4 Replies)
Discussion started by: f150
4. Shell Programming and Scripting
For the data
I would like to parse down and for each parsing
I want a cumulative averaging, stored in an array
that can be output.
546/NR = 546
(546+344)/NR=(546+344)/2 = etc.
For N record input I want N values of the average (a block
Any... (3 Replies)
Discussion started by: chrisjorg
5. Shell Programming and Scripting
I have 3 to 4 different files, from that i need to take a Average of numbers from a particular column. here i have to take 4th column,
that should present in diff. file.
Col1 col2 col3 col4
1 11 sa 12.00
2 22 sb 134.59
3 33 sc 11.99
4 44 sd 12.44
Col1 col2 col3... (8 Replies)
Discussion started by: Shenbaga.d
6. Shell Programming and Scripting
I have created next scritpt to do the next: chekp if host is alive. When the host down, launch telnet other equip to do checks.
When execute the script the load average of the machines increase. For example:
Before launch script
top - 11:14:56 up 14 days, 18:06, 3 users, load... (3 Replies)
Discussion started by: capilla
7. Shell Programming and Scripting
I have a list of numbers. I need an awk command to find out the numbers of elements (number of numbers, sort to speak), the average value the min and max value. Reading the list only once, with awk.
Thanks! (5 Replies)
Discussion started by: black_fender
8. UNIX for Dummies Questions & Answers
Hey all, I am relatively poor at programming and unfortunately don't have time to read about programming at this current moment.
I wanted to be able to run a simple command to read a column of numbers in a file and give me the average of those numbers. In addition if I could specify the... (2 Replies)
Discussion started by: Leonidsg
9. Shell Programming and Scripting
Just wondering if someone could assist me with shell script I'm trying to write. I need to read the final column of a text file (shown below) and workout what the average number is. The text file will have a variable number of lines, I just want the script to pull out the values in the final field... (14 Replies)
Discussion started by: rich@ardz
10. Shell Programming and Scripting
I am a bit lost on this...can some one assist. I know this can be down with awk or sed, but i cant get the exact syntax right.
I need to only extract the numbers from a signle word ( eg abcd.123.xyz )
How can i extract 123 only ?
Thanks (14 Replies)
Discussion started by: systemali