3/15/2005
Handy bash function
Handy function that I found at http://www.steve.org.uk/Reference/shell.html:
function range () {
if [ $1 -ge $2 ]; then
return
fi
a=$1
b=$2
while [ $a -le $b ]; do
echo $a;
a=$(($a+1));
done
}
Del.icio.us
Digg
Reddit
Technorati
Possibly related posts
No comments yet. Be the first.
Leave a reply


