University of Madras - Syllabus of Bachelor of Science (BSc) Computer Science - Semester V - Paper XI - CS322 - Unix Programming
UNIVERSITY OF MADRAS
B.Sc. DEGREE COURSE IN COMPUTER SCIENCE
SEMESTER SYSTEM WITH CREDITS
(Effective from the Academic Year 2003-2004)
Semester V - Paper XI - CS322 - Unix Programming
Lecture Lab: 5
Duration: 3 hrs
Maximum Marks: 100
Credits: 4
Unit - I: INTRODUCTION:
File and common commands - Shell - More about files - Directories- Unix system - Basics of file Directories and filenames - Permissions - modes - Directory hierarchy - Devices - the grep family - Other filters - the stream editor sed - the awk pattern scanning and processing language - files and good filters.
Unit - II: CONCEPTS OF SHELL:
Command line structure - Metacharacters - Creating new commands - Command arguments and parameters - program output as arguments - Shell variables - More on I/O redirection - loop in shell programs - Bundle - Setting shell attributes, Shift command line parameters - Exiting a command or the shell, evaluating arguments - Executing command without invoking a new process - Trapping exit codes -- Conditional expressions.
Unit - III: SHELL PROGRAMMING:
Customizing the cal command, Functions of command, While and Until loops - Traps - Catching interrupts - Replacing a file - Overwrite - Zap - Pick command - News command - Get and Put tracking file changes.
Unit - IV: FEATURES IN UNIX:
Standard input and output - Program arguments - file access - A screen at a time printer - On bugs and debugging - Examples - Zap - pick - Interactive file comparison program - Accessing the environment - Unix system calls - Low level I/O, File system Directories and modes, Processors, Signal and Interrupts.
Unit - V: PROGRAM DEVELOPMENT AND DOCUMENT PREPARATION:
Program development - Four function calculator - Variables and error recovery - Arbitrary variable names, Built in functions, Compilation into a machine, Control flow and relational operators, Functions and procedures - Performance evaluation - Ms macro package - Troff level - Tbl and eqn preprocessors - Manual page - Other document preparation.
Text Book for Study:
1. Brian W. Kernighan, Rob Pike - The UNIX Programming Environment - Prentice Hall of India( 1984).
References:
I. Steven Earhart - The UNIX System for MSDOS Users - Galgotia book source P. Ltd. (1990).
2. Stefen Prata - Advanced UNIX - A Programmer Guide.