pastebin - collaborative debugging tool
bash.kpaste.net RSS


arrays_info
Posted by Anonymous on Mon 26th Oct 2015 11:55
raw | new post

  1. ## Working with arrays.
  2. # We will be relying heavily on Bash arrays to set the color of various things in our PS1. The color will be dependent on a few things, so this is why using arrays gives us greater control and is generally easier to manage.
  3. # As an introduction, it's recommended to read this first - http://mywiki.wooledge.org/BashGuide/Arrays
  4. # Furthermore, since arithmetic expressions are supported, you should also get yourself familiar with this - http://mywiki.wooledge.org/BashGuide/CompoundCommands#Arithmetic_Evaluation

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at