Shell Scripting with Bash (EE378)


B.Tech (E&E)




Programme Specific Electives (PSE)

Credits (L-T-P): 

04 (3-1-0)


The Linux environment: Files and filesystems, directories, inodes and links, pipe and socket files, device files. Operating the shell, Bash keywords, Command basics, Command-line editing; Files, users and shell customization, working with files. Script basics, Creating a well-behaved script, Basic redirection, Standard output, error and input, Built-in versus Linux commands.

Variables: Basics and attributes, Bash pre-defined variables, Expressions, Arithmetic and logical expressions, Relational, bitwise and self-referential operations, substitutions.  Compound commands, Debugging and revision control, Shell archives, Parameters and subshells, Job control and signals. Text file basics, Text file processing, Console scripting, Functions and script execution. Shell security aspects and network programming. Related shells and the IEEE 1003.2  POSIX shell standard.


1. Cameron Newham, Bill Rosenblatt, Learning the Bash Shell, O'Reilly Media, 2005.
2. Arnold Robbins, Nelson H. F. Beebe, Classic Shell Scripting, O'Reilly Media, 2005.
3. Ken O. Burtch, Linux Shell Scripting with Bash, Sams Publishing, 2004.
4. Stephen G. Kochan, Patrick Wood, Unix Shell Programming, 3rd Edition, Sams Publishing, 2003.
5. Mendel Cooper, Advanced Bash-Scripting Guide,2005.(Available on-line in pdf at


Electrical and Electronics Engineering