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 [...]
Archive of posts tagged amit agarwal
Array of all possible colors in bash script
7 May 2012, 7:47 am
Filed under bash, Learning.
Tagged amit agarwal, bash, Indian Standard Time, Operating system, Relational operator, Screenwriting, shell, Unix
Comment
Display X applications from virtual terminals
3 May 2012, 5:35 pm
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), [...]
Filed under Fedora, Gnome.
Tagged amit agarwal, David Siegel, Desktop environment, Gnome, gnomeshell, List of Ubuntu releases, Operating system, Pgrep, ubuntu
Comment
colors in bash scripts
30 April 2012, 9:22 am
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, [...]
Filed under bash, Fedora, Learning.
Tagged amit agarwal, bash, color, Echo (command), Indian Standard Time, Operating system, shell, Unix
Comment










