Question: please use script to display your programs. Send one script file for all the questions. Here is how to use script command in Unix: http://www-users.cs.umn.edu/~gini/1901-07s/files/script.html
please use script to display your programs. Send one script file for all the questions.
Here is how to use script command in Unix:
http://www-users.cs.umn.edu/~gini/1901-07s/files/script.html (Links to an external site.)Links to an external site.
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
$
Write a shell program named "mycal" with these specifications:
If there are no arguments, print the calendar for the current month
and year.
If there is one argument given which is an abbreviation of a month,
print the calendar for that month in the current year. If that
argument is a number, print the calendar for the entire year.
If there are two arguments, print the calendar for that month and
year. The month may be entered as an abbreviation or a number.
eg.
$mycal
September 1990
S M Tu W Th F S
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
$mycal Oct
October 1990
S M Tu W Th F S
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
20 21 22 23 24 25 26
27 28 29 30 31
Write a spell_check program to check your spellings. The script
requires two filename arguments: the 1st file contains your list
of correctly spelled words, and the second file is the file that
is to be checked. Prints out the incorrect spellings from the
file to be checked. e.g.
$ spell memo
Blankenship
Klimowski
targat
hte
Note: the memo file includes the words you want to check their
spellings. You can use spell utility to detect those words
not included in the standard dictionary. Refers to the
spell utility for more informations. ($man spell)
$cat word_list
Blankenship
Klimowski
Note: the above file (word_list) is the list of correct words
you want to add to the standard dictionary.
$ spell_check word_list memo
targat
hte
$
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
