Practical introduction to operating systems
IFE, Computer Science, II sem.
Wyniki
Last evaluation
- 14 September 2006, Thursday, 14:00, Lab C (or p11)
Materials:
Recommended readings:
- D. Doughert & A. Robbins, sed & awk, O'Reilly & Associates, Inc., 1997.
Bash exercises
1. Write a script that does the following:
- Display the name of the script being executed.
- Display the first, third and tenth argument given to the script.
- Display the total number of arguments passed to the script.
- If there were more than three positional parameters, use shift to move all the values 3 places to the left.
- Print all the values of the remaining arguments.
- Print the number of arguments.
2. Bash shell script that lists all HTML files and writes the
first line of each HTML-file to a file called File_Heads
Witold Marañda,
Modified: 6 May 2005