[5 points] Read the man page for getenv. Write a program which checks for the following environment variables and prints a greeting.
- TITLE
- FIRST_NAME
- LAST_NAME
- HONORIFIC
So if the following were set:
TITLE="Her Majesty"
FIRST_NAME="Elizabeth"
LAST_NAME="the Second"
HONORIFIC="by the Grace of God of the United Kingdom of Great Britain and Northern Ireland, and of Her other Realms and Territories Queen, Head of the Commonwealth, Defender of the Faith"
Then your program would print
$ greeting
Greetings to Her Majesty Elizabeth the Second by the Grace of God of the United Kingdom of Great Britain and Northern Ireland, and of Her other Realms and Territories Queen, Head of the Commonwealth, Defender of the Faith.