LAB 53: VARIABLES

 <  Day Day Up  >  

  1. What is a positional parameter? Type at the command line:

     set dogs cats birds fish 

    1. How do you list all of the positional parameters?

    2. Which positional parameter is assigned birds ?

    3. How do you print the number of positional parameters?

    4. How do you remove all the positional parameters from the shell's memory?

  2. What is an environment variable? What is the command used to list them? Create an environment variable called CITY and assign it the value of your hometown. How do you export it?

  3. What is a local variable? Set a local variable to your name . Print its value. Unset it.

  4. What is the function of declare “i ?

  5. What does the $$ variable display? What does the $! display?

 <  Day Day Up  >  


UNIX Shells by Example
UNIX Shells by Example (4th Edition)
ISBN: 013147572X
EAN: 2147483647
Year: 2004
Pages: 454
Authors: Ellie Quigley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net