0% found this document useful (0 votes)
71 views

Unix Shell Programming Objectives & Outcomes

This course covers Unix shell programming and scripting. Students will learn the basics of the Unix operating system and commands. They will learn how to customize their environment and write scripts using shell variables, control structures, I/O redirection and pipes. The course aims to teach students how to automate repetitive tasks and system administration work through shell programming. Key skills developed include using the shell command line, writing structured shell scripts that interact with the user and files, and following the programming development cycle of designing, coding, testing and debugging shell programs.

Uploaded by

Naveen Setty
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views

Unix Shell Programming Objectives & Outcomes

This course covers Unix shell programming and scripting. Students will learn the basics of the Unix operating system and commands. They will learn how to customize their environment and write scripts using shell variables, control structures, I/O redirection and pipes. The course aims to teach students how to automate repetitive tasks and system administration work through shell programming. Key skills developed include using the shell command line, writing structured shell scripts that interact with the user and files, and following the programming development cycle of designing, coding, testing and debugging shell programs.

Uploaded by

Naveen Setty
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

SUBJECT - 1

UNIX AND SHELL PROGRAMMING


(Common to CSE & ISE)

Subject Code : 10CS44 I.A. Marks : 25


Hours/Week : 04 Exam Hours : 03
Total Hours : 52 Exam Marks : 100

PART-A

UNIT 1: The Unix Operating System, The UNIX architecture and Command Usage,The
File System. Duration: 6 Hours
Objectives:
 To study the Unix Operating System and the UNIX architecture.
 To learn the Commands and the File System Usage of Unix Operating System.
Generic Skills / Outcomes:
 To understand the architecture of UNIX and the concept of division of labor between
two agencies viz., the shell and the kernel.
 To use the rich collection of UNIX command set, with specific command.

UNIT 2:Basic File Attributes, the vi Editor Duration: 6 Hours


Objectives:
 To study and understand the basic File Attributes.
 To learn the usage of text editor - vi Editor.
Generic Skills / Outcomes:
 To understand the importance of ownership and group ownership of a file and how they
affect the security.
 To understand the three modes in which vi operates for sharing the workload.

UNIT 3: The Shell, The Process, Customizing the environment Duration: 7 Hours
Objectives:
 To learn the overview of the Shell’s interpretive cycle.
 To study the overview of the kernel’s role in process management. Customizing the
environment
 To Customize the environment.
Generic Skills / Outcomes:
 To understand the shell – the agency that sits between the user and the UNIX system.
 To understand the process creation using three primitives- fork, exec and wait.
 To understand the customization using four shells – Bourne shell, C shell, Korn shell
and Bash.

UNIT 4: More file attributes, Simple filters Duration: 7 Hours


Objectives:
 To study the concept of the file system and the use of inode to store file attributes.
 To learn all the file attributes and the usage of Simple Filters.
Generic Skills / Outcomes:
 To understand the significance of directory permissions and their impact on file’s
access rights.
 To understand the different commonly used filters available in the UNIX system.

PART – B

UNIT 5: Filters using regular expressions Duration: 6 Hours


Objectives:
 To learn and use grep and sed commands.
 To study the internal regular expressions and tagged regular expression.
Generic Skills / Outcomes:
 To understand the usage of grep and sed filters.
 To learn the concept of a regular expression as a mechanism for matching multiple
similar patterns.

UNIT 6: Essential Shell Programming Duration: 6 Hours


Objectives:
 To learn shell variables, positional parameters, branching and loop control structures.
 To learn shell script execution.
Generic Skills / Outcomes:
 To understand and write shell scripts.
 To execute and debug shell script

UNIT 7: awk – An Advanced Filter Duration: 7 Hours


Objectives:
 To learn awk’s unusual syntax with its selection criteria & action components.
 Use of special properties of awk variables & expressions.
 To know awk’s built-in variables.
Generic Skills / Outcomes:
 To understand the usage of awk for information retrieval & report generation tasks.

UNIT 8: perl - The Master Manipulator Duration: 7 Hours


Objectives:
 To study the significance of the default variable $_
 Use of special regular expression characters & escape sequences that perl uses for
pattern matching.
Generic Skills / Outcomes:
 To gain an overview of a sample perl program.
 To understand the usage of file handles to access a file or stream.

Text Book:
1. Sumitabha Das: UNIX – Concepts and Applications, 4th Edition, Tata McGraw Hill, 2006.
(Chapters 1.2, 2, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 18, 19)

Reference Books:
1. Behrouz A. Forouzan and Richard F. Gilberg: UNIX and Shell Programming, Cengage
Learning, 2005.
2. M.G. Venkateshmurthy: UNIX & Shell Programming, Pearson Education, 2005.

Question Paper Pattern:

Student should answer FIVE full questions out of 8 questions to be set each carrying 20 marks,
selecting at least TWO questions from each part.

Summary:
Subject Overview:
This course offers a hands-on expertise to create scripts in the UNIX shell, or command line
environment. These scripts are used on all UNIX systems for system administration work,
repetitive tasks, or just to automate a long series of steps.
This course is about the Basic UNIX Shell Programming which emphasizes to build those
concepts to create own shell programs.
Objective:

 State how the shell functions at the user interface and command line interpreter.
 Modify built-in shell variables and create and use user-defined shell variables.
 Use I/O redirection, pipes, quoting, and filename expansion mechanisms.
 Create structured shell programming which accept and use positional parameters and
exported variables.
 Use shell flow control and conditional branching constructs (while, for, case, if, etc.)
 Create shell programs which process interrupts, pass signals, invoke sub-shells and
functions, and trap signals.
 Use shell debugging mechanisms to improve shell program efficiency and detect and
correct errors.
 Develop the user interface menu system using shell programming constructs.

Generic Skills / Outcomes:


After studying this subject, students will be able to:
 Identify and use the command line features of a UNIX shell, (including command line
editing, file redirection, job control, and command parsing) to accomplish
administrative and user-oriented tasks.
 Design the structure of a program given a set of requirements and specifications.
 Write shell scripts that interact with the user as well as read and write files on the
system.
 Write shell programs that involve multiple scripts and data files interacting with each
other.
 Demonstrate the programming development cycle by designing, coding, testing,
debugging, and documenting shell programs.
Breadth Options:
 This subject potentially can be taken as a breadth subject component for the following
courses: Bachelor of Engineering specialization in CSE.
Prerequisite:
 Unix introduction is an essential prerequisite for Unix Shell programming.

You might also like