A Sample .bashrc File The ~/.bashrc file determines the behavior of interactive shells. A good look at this file can lead to a better understanding of Bash. Emmanuel Rouat contributed the following very elaborate .bashrc file, written for a Linux system. He welcomes reader feedback on it. Study the file carefully, and feel free to reuse code snippets and functions from it in your own .bashrc file or even in your scripts.
Bash by example, Part 2 Let's start with a brief tip on handling command-line arguments, and then look at bash's basic programming constructs. Accepting arguments In the sample program in the introductory article, we used the environment variable "$1", which referred to the first command-line argument.
You might wonder why you ought to learn Bash programming. Well, here are a couple of compelling reasons: You're already running it Bash by example, Part 1
Bash is the shell, or command language interpreter, that will appear in the GNU operating system. Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh). It is intended to conform to the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard. It offers functional improvements over sh for both programming and interactive use. In addition, most sh scripts can be run by Bash without modification. The improvements offered by Bash include: BASH - GNU Project