![]() |
|
|
|
|
|||||||
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. Shell Script Page. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Awking!! Printing decimal output is struck | divzz | Shell Programming and Scripting | 4 | 05-28-2008 05:02 AM |
| how to make a line BLINKING in output and also how to increase font size in output | mail2sant | Shell Programming and Scripting | 3 | 04-14-2008 04:30 AM |
| Printing to a Savin - Size of output wrong | h1timmboy | AIX | 2 | 02-28-2006 05:19 AM |
| Printing output to the monitor | jyotipg | Shell Programming and Scripting | 2 | 06-22-2004 02:41 AM |
| Printing Problems in unix ... ( Bar-cdoe - Ip Printing) | QuickSilver | UNIX for Advanced & Expert Users | 3 | 06-04-2002 07:48 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
printing output more than 13
i want to print the idle time of the users more than 10 days.
for eg: my "w" command output is like below. -sh-3.00$ w 03:47:41 up 13 days, 16:59, 3 users, load average: 10.00, 10.00, 10.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root :0 - 08Jan07 ?xdm? 2days 0.18s /usr/bin/gnome- root pts/1 :0.0 08Jan07 13days 0.00s 0.00s bash krrishv pts/2 221-135-33-1.sif 02:55 1.00s 0.05s 0.00s w i am printing $1 & $5 alone using awk. Now how do i loop it and check each line and if $5 is gt 13 than i want to echo it with the user name $1 |
| Forum Sponsor | ||
|
|
| Thread Tools | |
| Display Modes | |
|
|