bash
Array of all possible colors in bash script
2012/05/07
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 - …
colors in bash scripts
2012/04/30
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 …
bash prompts — some good links
2012/03/08
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 …
15 Linux Bash History Expansion Examples You Should Know
2012/03/02
Here is a nice link on BASH History Expansion. There are lot of examples in this page and some of them might be quite useful. But here are my list of favourites: !! This is probably the most used one …
Using file partially for filenames
2012/02/12
There are some commands that take file name and there are some case where you need to give file name. But there are some cases where you want to modify the file before passing it to the command. What …
better bash debugging
2011/09/16
I was trying to debug some bash scripts yesterday and learnt something new 😉 There are lot of things in bash that you can use to debug and to start with you can enable xtrace mode as follows: set -x …
bash completion
2011/08/09
I was working on some functions in bash to make my life easier and realized that if I added custom completion to my functions, it will be really good. So I headed over to google and searched for what …
faster bash operations on files with File Descriptors.
2011/06/11
I was writing a bash script that would do some operations and read and write to file. Seems that that was pretty simple with […] <td> <div class="text codecolorer"> while …
Unix shell script for removing duplicate files
2011/05/16
The following shell script finds duplicate (2 or more identical) files and outputs a new shell script containing commented-out rm statements for deleting them (copy-paste from here): ::: updated on 02 …
Terminating a SSH session after starting background process.
2011/05/14
This is too good. If you are planning to start a background process in the bash script in the background and continue in the script, you cannot do it until……. You would need to close the stdout/stdin …
cd across parallel directories
2011/03/14
Image via Wikipedia […] Here is a simple and fast way to cd across parallel directory.
/bash debugger
2011/02/27
In this section we’ll develop a very basic debugger for bash.[10] Most debuggers have numerous sophisticated features that help a programmer in dissecting a program, but just about all of them include …