JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY
HYDERABAD
II Year B.Tech. CSE - I Sem T P C
4+1* 0 4
Unix and Shell Programming
Unit I:
Introduction to Unix:- Architecture of Unix, Features of Unix , Unix Commands – PATH, man, echo,
printf, script, passwd, uname, who, date, stty, pwd, cd, mkdir, rmdir, ls, cp, mv, rm, cat, more, wc, lp, od,
tar, gzip.
Unit II :
Unix Utilities:- Introduction to unix file system, vi editor, file handling utilities, security by file permissions,
process utilities, disk utilities, networking commands, unlink, du, df, mount, umount, find, unmask,
ulimit, ps, w, finger, arp, ftp, telnet, rlogin.Text processing utilities and backup utilities , detailed
commands to be covered are tail, head , sort, nl, uniq, grep, egrep, fgrep, cut, paste, join, tee, pg,
comm, cmp, diff, tr, awk, cpio
Unit III :
Introduction to Shells :
Unix Session, Standard Streams, Redirection, Pipes, Tee Command, Command Execution, CommandLine Editing, Quotes, Command Substitution, Job Control, Aliases, Variables, Predefined Variables,
Options, Shell/Environment Customization.
Filters :
Filters and Pipes, Concatenating files, Display Beginning and End of files, Cut and Paste, Sorting,
Translating Characters, Files with Duplicate Lines, Count characters, Words or Lines, Comparing Files.
Unit IV :
Grep :
Operation, grep Family, Searching for File Content.
Sed :
Scripts, Operation, Addresses, commands, Applications, grep and sed.
Unit V :
awk:
Execution, Fields and Records, Scripts, Operations, Patterns, Actions, Associative Arrays, String
Functions, String Functions, Mathematical Functions, User – Defined Functions, Using System
commands in awk, Applications, awk and grep, sed and awk.
Unit VI :
Interactive Korn Shell :
Korn Shell Features, Two Special Files, Variables, Output, Input, Exit Status of a Command, eval
Command, Environmental Variables, Options, Startup Scripts, Command History, Command Execution
Process.
Korn Shell Programming :
Basic Script concepts, Expressions, Decisions: Making Selections, Repetition, special Parameters and
Variables, changing Positional Parameters, Argument Validation, Debugging Scripts, Script Examples.
Unit VII :
Interactive C Shell :
C shell features, Two Special Files, Variables, Output, Input, Exit Status of a Command, eval Command,
Environmental Variables, On-Off Variables, Startup and Shutdown Scripts, Command History,
Command Execution Scripts.
C Shell Programming :
Basic Script concepts, Expressions, Decisions: Making Selections, Repetition, special Parameters and
Variables, changing Positional Parameters, Argument Validation, Debugging Scripts, Script Examples.
Unit VIII :
File Management :
File Structures, System Calls for File Management – create, open, close, read, write, lseek, link,
symlink, unlink, stat, fstat, lstat, chmod, chown, Directory API – opendir, readdir, closedir, mkdir, rmdir,
umask.
TEXT BOOKS :
1. Unix and shell Programming Behrouz A. Forouzan, Richard F. Gilberg.Thomson
2. Your Unix the ultimate guide, Sumitabha Das, TMH. 2nd Edition.
REFERENCES :
1. Unix for programmers and users, 3rd edition, Graham Glass, King Ables, Pearson Education.
2. Unix programming environment, Kernighan and Pike, PHI. / Pearson Education
3. The Complete Reference Unix, Rosen, Host, Klee, Farber, Rosinski, Second Edition, TMH.
-
CreatedAug 08, 2013
-
UpdatedAug 08, 2013
-
Views3,747