Skip to content
Archive of posts tagged amit agarwal

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 [...]

Display X applications from virtual terminals

Here is a script that can help you set the proper envirionment to start a gnome-shell from one of the terminals. #!/bin/bash – #=============================================================================== # # FILE: xenv.sh # # USAGE: ./xenv.sh # # DESCRIPTION: http://live.gnome.org/GnomeShell/Debugging # # # OPTIONS: — # REQUIREMENTS: — # BUGS: — # NOTES: — # AUTHOR: Amit Agarwal (aka), [...]

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, [...]