Search Results

Search: Posts Made By: navidlog
3,191
Posted By jim mcnamara
#!/bin/bash for i in 1 2 3 4 5 6 7 8 9 10 do ...
#!/bin/bash
for i in 1 2 3 4 5 6 7 8 9 10
do
cat /proc/loadavg
sleep 60
done > /tmp/t.lis
awk '{ sum +=$1; print $1 } END {print sum/NF}' /tmp/t.lis > avg.lis
# use the avg variable
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 03:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy