|
Match lines, group and sum > any ideas? sort | uniq -c | while read first junk;do echo $junk "($first times)"; done just an idea, not tested ... 20 Jul 2006 04:16
HP-UX 11.x and Legato Networker 5.5 James wrote: Hello, I work for a company who uses Legato Networker to backup their HP-UX systems. The problem is Legato. It seems that on one particular server, Legato wants to fail at least once a week. Multiple sites are supported solely by me, and I have spent many weeks restoring Legato di... 28 Jul 2006 12:39
Dir Files & Size Hi Gurus, I am trying to write a script which gives me a detail report of no of files in each sub dir of main dir and total size of the main dir as below: Dir structure is in Year/Month/Day format as below: 200601/01 200601/02 ... 200601/31 200602/01 200602/02 .. .. 200602/28 and so on.. There are t... 11 Jul 2006 07:03
Derive a sum of a column is there a simply way to get the sum of a column im trying to get a average? so suggestions would be appreciated. below is my column from that i would like to then see what percent 4765 is of the total sum of the column. 4765 1876 1107 1088 883 670 420 335 179 177 136 129 126 120 120 110 77 66... 5 Jul 2006 15:15
xargs rm -rf in crontab On 03 Jul 2006 16:07:57 GMT, my <address(a)is.invalid> wrote: Hi, Occasionally I post files on my ftp site for others to download. I have the following line in my crontab to delete them when they become 7 days old. It has worked great until, if I make a subdirectory under outgoing, although it delete... 9 Jul 2006 09:03
getopt arguments I have read the man pages but still don't understand getopt. #!/bin/bash # # SCRIPTNAME=${0##*/} function show_list() { cat -n .dolist } # commented out for debugging #function addroutine() { # echo "$2 >> .dolist" # } # commented out for debugging #function delrou... 21 Jun 2006 22:39
list of Dirs Hi Gurus, I need to have ouput of list of all the directories and sub-dir in a folder with total no. of dirs. find . -type d -exec wc -l ls {} \; Any help is greatly appreciated. Regards ... 21 Jun 2006 15:53
grep exact PID Hi, I'm trying to grep a PID (eg 1234) currently i'm ps -ef grep 1234 |awk '{print $2}' |wc to make sure that i'm grepping the exact 1234 (4 digit PID) and not 12345. Is there more elagant and efficient way of grepping the PID, 1234? Thanks and regards ... 21 Jun 2006 18:30
what is the meaning of IFS ??? Hi. I have read some messages here, and I find many of them using IFS variable. What s te main purpose of this variable ? Where could I find more info on this ? and examples ? ... 19 Jun 2006 02:57
awk with sub hello, i want to make text substitution with updating variable using awk... from 1 alpha AA1 2 alpha AA1 3 alpha AA1 .... to 1 alpha B01 2 alpha B02 3 alpha B03 .... how can i make it with awk, something like the following ?? awk '//{ i = 1 while (i <= 3) { sub("AA1","B0$i") ... 9 Jun 2006 03:48 |