The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 399 Weeks Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
1. Write a script that prints the current date, your user name, and the name of your login shell. Use variables and/or commands. Do not use literals.
2. Write a script that creates three background processes, waits for them all to complete, and then displays a simple message.
3. Experiment with the exec command by writing a series of three shell scripts called "a.sh," "b.sh," and "c.sh" that each display their name using a command line parameter, execute ps, and then exec the next script in the sequence. Observe what happens when you start the first script by: exec a.sh (Note: You are going to link your files to my working directory, so make sure your naming of and/or pathing to the files will work when they run in my directory.)
4. Write a script that echos the following special variable: $$, $0, $1, ${10}, $*, $@, and $#. The script must work with the input and output below. Your pid will be different but the rest of the rest will match.
5. Write a script that clears the screen, determines how many sessions you are in (use who, grep, and wc), compare 2 files that are passed as parameters using diff and cmp, and sort the first file.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll