removed examples with copyright issues at FSF request

This commit is contained in:
Chet Ramey
2013-03-05 17:19:48 -05:00
parent 899fe729a6
commit 8eb22ee966
118 changed files with 0 additions and 16706 deletions
-21
View File
@@ -1,21 +0,0 @@
#From: Syamala Rao Tadigadapa <stadigad@us.oracle.com>
#Subject: Re: Division in ksh(getting the exact number) Please HELP
#Date: Mon, 25 Oct 1999 15:05:08 -0700
#Message-ID: <3814D414.7B896084@us.oracle.com>
#Here is how to calculate the (integer part of the) square root
#of a number in a much cleaner way.
sqroot()
{
let arg=$1
let root=arg
while :
do
newroot=$(( (root+arg/root)/2 ))
(( newroot == root )) && { echo $root; return; }
let root=newroot
done
}
sqroot "$@"