CS367: Examples
Awk Program File Example
Use with the file grades in your Lab 3 distribution.
awk.txt
Shell Script Examples
Shell Script Example 1: demonstrates command-line arguments
Shell Script Example 2: demonstrates for-loop
Shell Script Example 3: demonstrates for-loop with command-line arguments
Shell Script Example 4: makes backup files
Shell Script Example 5: does long format listing on specific found files
Shell Script Example 6: makes backup files in another directory
C Multiple Function Program Example
demo1.c Source file containing two function definitions.
demo2.c Source file using a function prototype.
C Multiple Source File Program Example
demo3.c Source file containing main function.
myfunc.h Header file containing function prototypes.
myfunc.c Source file containing function definitions.
Return to the CS367 Home Page...