The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-30-2006
raj1811 raj1811 is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 1
Post please give a bourne script to this problem

Hello all,
I am new to unix and having the below problem.Any help will be appreciated.

Write a Bourn shell script dTOe which takes as an input any number
between 0 and 999 and prints the English value for this number. The
program should display an error message when a NOT digit value entered.

Sample:

$dTOe 234

TWO HUNDRED AND THIRTY FOUR

$dTOe 199

ONE HUNDRED AND NINETY NINE
Thanks in advance