6 IT 7.   SHELL PROGRAMMING LAB

1.   Practice commands: cp, mv, rm, ln, ls, who, echo, cat, mkdir, rmdir. Wildcards (?, *) ,

I/O redirection (<, >, >>), pipelines (|)

2.   Practice commands: xargs, alias, set-unset, setenv-unsetenv, export, source, ps, job, kill.

3.   Practice commands: head, tail, cut, paste, sed, grep, sort, uniq, find , locate, chmod.

4.   Writing a simple shell script to echo who is logged in.

5.   Write a shell script to display only executable files in a given directory.

6.   Write a shell script to sort a list of file either in alphabetic order or largest file first according to user response.

7.   Write a shell script to count the lines. Words and characters in its input (Note : Don't use wc).

8.   Write a shell script to print end of a glossary file in reverse order using array. (Hint: use awk tail).

9.   Modify cal command to accept more than one month (e.g. $cal Oct, Nov, )(Hint : use alias too)

10. Write a shell script to check whether Ram logged in, continue checking every 60 seconds until success