Skip to content
Archive of posts filed under the bash category.

Array of all possible colors in bash script

Sometime back, we had looked at using colors in bash script and here is a way to create a array of all the colors. #!/bin/bash – #=============================================================================== # # FILE: colorarray.sh # # USAGE: ./colorarray.sh # # DESCRIPTION: # # OPTIONS: — # REQUIREMENTS: — # BUGS: — # NOTES: — # AUTHOR: Amit Agarwal [...]

colors in bash scripts

I have been trying to understand the color codes for bash for a pretty long time, but somehow never got time to understand this clearly. So this time around when I was writing a script to analyze some logs. I thought I will give it a go and finally understood some part of this. So, [...]

bash prompts — some good links

Here are some pretty good links on the subject. Since there are already so many blog posts, does not make sense to add one more http://tldp.org/HOWTO/Bash-Prompt-HOWTO/c816.html http://www.gilesorr.com/bashprompt/prompts/ https://bbs.archlinux.org/viewtopic.php?id=84386 Bash themes – http://onlamp.com/onlamp/2006/02/02/bash_themes.html Related articles set prompts for bash Osx? (stackoverflow.com) Difference between Bash shell and Bash terminal? (stackoverflow.com) The Hollywood Reporter Rounds Up Jessica Chastian [...]