Bourne Shell Programming Example
-
Ex1 :
This programs mails a file to a group of users. The first
attribute is the file name, followed by the recipients's email.
-
Ex2 :
This program informs you when a specific user logs on
to your machine. It has one argument, the account to wait for.
-
Ex3 :
This programs gives a list of users currently logged
on, sorted by their login time. It uses sortout.sh
-
Ex4 :
This program prints the number of files in a subtree.
The only argument is the root of the tree to search in.
-
Ex5 :
This program creates a backup directory for C files
-
Ex6 :
This program scans the currently directory recursively
and prompts the users for a command and then executes it.