Current Path : /compat/linux/proc/68247/root/compat/linux/proc/68247/root/compat/linux/usr/share/doc/bash-3.2/functions/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/68247/root/compat/linux/proc/68247/root/compat/linux/usr/share/doc/bash-3.2/functions/repeat3 |
# From psamuels@jake.niar.twsu.edu (Peter Samuelson) # posted to usenet, Message-ID: <6rtp8j$2a0$1@jake.niar.twsu.edu> repeat () { local i max; # note that you can use \$i in the command string max=$1; shift; i=1; while ((i <= max)); do eval "$@"; ((i = i + 1)); done; }