Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale'
James McMurray wrote:
How can I recursively move through a directory tree and call a function in
each folder?
Mike Stroyan recently posted an example doing exactly this:
http://lists.gnu.org/archive/html/bug-bash/2007-11/msg00080.html
There is also examples/functions/recurse in the
Chet Ramey wrote:
seba wrote:
GNU bash, version 3.2.25(1)-release (i686-pc-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
#!/bin/sh
fib() {
n=$1
[ $n == 0 -o $n == 1 ] return $n
fib $(($n-1))
ret1=$?
fib $(($n-2))
ret2=$?
return
(things I forgot to say the first time...)
Matthew Woehlke wrote:
Chet Ramey wrote:
seba wrote:
GNU bash, version 3.2.25(1)-release (i686-pc-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
#!/bin/sh
This is wrong. You're using features that are not in classic Bourne
shell.
On Tue, Dec 18, 2007 at 09:57:44PM EST, Matthew Woehlke wrote:
cga2000 wrote:
I was wondering if there is any way I can convince netstat to return
its output to bash variables for processing.
Pretty simple logic:
Do forever:
Call netstat to obtain RX TX byte counts Print delta