Bash Script wanted - ALL common denominators of a set of num…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Steven M. Klass
Date:  
Subject: Bash Script wanted - ALL common denominators of a set of numbers
Hello again,

    Hey I have a script request.  I am looking for a bash script that finds and 
print all common (integer) denominators of a set of numbers.


Example:

Given the numbers 12, 18 and 24
You get back 1, 2, 3, 6

Could someone help me on this

Thanks
--

Steven M. Klass
Physical Design Engineering Manager

Andigilog Inc.
7404 W. Detroit Street, Suite 100
Chandler, AZ 85226
Ph: 480-940-6200 ext. 18
Fax: 480-940-4255


http://www.andigilog.com