Book description
The bash shell is a complete programming language, not merely a glue to combine external Linux commands. By taking full advantage of shell internals, shell programs can perform as snappily as utilities written in C or other compiled languages. And you will see how, without assuming Unix lore, you can write professional bash 4.0 programs through standard programming techniques.
Complete bash coverage
Teaches bash as a programming language
Helps you master bash 4.0 features
Table of contents
- Cover Page
- Title Page
- Copyright
- Contents at a Glance
- Contents
- About the Author
- About the Technical Reviewer
- Introduction
- CHAPTER 1 Hello, World! Your First Shell Program
- CHAPTER 2 Input, Output, and Throughput
- CHAPTER 3 Looping and Branching
- CHAPTER 4 Command-Line Parsing and Expansion
- CHAPTER 5 Parameters and Variables
- CHAPTER 6 Shell Functions
- CHAPTER 7 String Manipulation
- CHAPTER 8 File Operations and Commands
-
CHAPTER 9 Reserved Words and Builtin Commands
- help, Display Information About Builtin Commands
- time, Print Time Taken for Execution of a Command
- read, Read a Line from an Input Stream
- Setting Multiple Variables from One Command
- type, Display Information About Commands
- builtin, Execute a Builtin Command
- command, Execute a Command or Display Information About Commands
- pwd, Print the Current Working Directory
- Deprecated Builtins
- Dynamically Loadable Builtins
- Summary
- Commands and Reserved Words
- Exercises
- CHAPTER 10 Writing Bug-Free Scripts and Debugging the Rest
- CHAPTER 11 Programming for the Command Line
- CHAPTER 12 Runtime Configuration
- CHAPTER 13 Data Processing
- CHAPTER 14 Scripting the Screen
- CHAPTER 15 Entry-Level Programming
-
APPENDIX Shell Variables
- BASH
- BASHPID
- BASH_ALIASES
- BASH_ARGC
- BASH_ARGV
- BASH_CMDS
- BASH_COMMAND
- BASH_EXECUTION_STRING
- BASH_LINENO
- BASH_REMATCH
- BASH_SOURCE
- BASH_SUBSHELL
- BASH_VERSINFO
- BASH_VERSION
- COMP_CWORD
- COMP_KEY
- COMP_LINE
- COMP_POINT
- COMP_TYPE
- COMP_WORDBREAKS
- COMP_WORDS
- DIRSTACK
- EUID
- FUNCNAME
- GROUPS
- HISTCMD
- HOSTNAME
- HOSTTYPE
- LINENO
- MACHTYPE
- OLDPWD
- OPTARG
- OPTIND
- OSTYPE
- PIPESTATUS
- PPID
- PWD
- RANDOM
- REPLY
- SECONDS
- SHELLOPTS
- SHLVL
- UID
- BASH_ENV
- CDPATH
- COLUMNS
- COMPREPLY
- EMACS
- FCEDIT
- FIGNORE
- GLOBIGNORE
- HISTCONTROL
- HISTFILE
- HISTFILESIZE
- HISTIGNORE
- HISTSIZE
- HISTTIMEFORMAT
- HOME
- HOSTFILE
- IFS
- IGNOREEOF
- INPUTRC
- LANG
- LC_ALL
- LC_COLLATE
- LC_CTYPE
- LC_MESSAGES
- LC_NUMERIC
- LINES
- MAILCHECK
- MAILPATH
- OPTERR
- PATH
- POSIXLY_CORRECT
- PROMPT_COMMAND
- PROMPT_DIRTRIM
- PS1
- PS2
- PS3
- PS4
- SHELL
- TIMEFORMAT
- TMOUT
- TMPDIR
- auto_resume
- histchars
- Index
Product information
- Title: Pro Bash Programming: Scripting the GNU/Linux Shell
- Author(s):
- Release date: October 2009
- Publisher(s): Apress
- ISBN: 9781430219972
You might also like
book
Pro Bash Programming : Scripting the GNU/Linux Shell, Second Edition
Pro Bash Programming teaches you how to effectively utilize the Bash shell in your programming. The …
book
Shell Scripting: Expert Recipes for Linux, Bash, and More
A compendium of shell scripting recipes that can immediately be used, adjusted, and applied The shell …
book
From Bash to Z Shell: Conquering the Command Line
Some areas are covered in other books, but this one goes into some little-seen side streets …
book
Mastering Linux Shell Scripting
Master the complexities of Bash shell scripting and unlock the power of shell for your enterprise …