![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How print number | bisla.yogender | Shell Programming and Scripting | 4 | 04-28-2008 06:51 AM |
| checking the smallest and largest number | subin_bala | Shell Programming and Scripting | 4 | 04-24-2008 07:32 AM |
| to print number one less than actual number | cdfd123 | Shell Programming and Scripting | 4 | 09-06-2007 06:56 AM |
| search the largest number and duplicates string | fongthai | Shell Programming and Scripting | 13 | 05-18-2007 10:40 AM |
| How to print number of lines with awk ? | maheshsri | Shell Programming and Scripting | 1 | 11-18-2005 02:19 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How to print largest and smallest number.
Hey. This is pretty easy stuff but I'm learning the basics of Unix at the moment so keep that in mind. I have to:
1) Write a C-shell script to monitor user activity on the server for 13 minutes. 2) Then print the smallest and largest number of users during these 13 minutes. I have this: 1) set number = ` who | wc -l ` @ x = 1 while ( $x < 14 ) echo " Cycle $x : number of users = $number " @ x++ sleep 60 end 2) But I having a hard time figuring out how to do the second part where I have to print the largest and smallest numbers. Any help will be appreciated! |
|
||||
|
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|