bash

bash mathematical calculators.

2011/01/25

To start with , the most simple and easy to use should be “bc”. but just for some guys who want to be more experimental, here are few more bash calulator programs. These are completely command line …

shopt causes bash completion to stop working.

2011/01/25

Couple of days, I added some scripts to my bash startup and suddenly realized that bash completions stopped working. This is tricky situation in bash to figure out what went wrong. So, I set my foot …

Find all the missing paths in the PATH variable in bash script

2011/01/20

Here is a simple script that will list out all the paths in the PATH variable that do not exist.

bash 4.0 – new feature mapfile

2011/01/14

Recently I encountered a problem where I had to create couple of arrays in bash and these were quite dynamic in nature. This script was supposed to be used by couple of guys whom I did not trust too …

perl is faster than bash in some cases.

2011/01/11

Some days back, I had to generate some data to be uploaded to a database. As usual I assumed that bash should be faster and hence wrote the script to create the files in bash. But I found that even …

Shell Scripting

2011/01/05

Here are some links for bash programming that you may find useful. http://tips-linux.net/en/content/pro-bash-programming http://tips-linux.net/en/content/expert-shell-scripting …

Thumbnail

Execute a command with a timeout

2010/12/29

<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;"> Image via <a …

write the output of a command to /var/log/user.log… each line will contain $USER, making this easy to grep for.

2010/12/28

write the output of a command to /var/log/user.log… each line will contain $USER, making this easy to grep for. […] <td> <div class="text codecolorer"> &nbsp;log() { …

Thumbnail

Bash Script Beautifier

2010/12/23

<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;"> Image via <a …

Take a screenshot of the window the user clicks on and name the file the same as the window title

2010/12/19

Take a screenshot of the window the user clicks on and name the file the same as the window title […] <td> <div class="text codecolorer"> &nbsp;sleep 4; xwd …

The Hidden PS

2010/11/27

<td> <div class="text codecolorer"> &nbsp;for p in `ps L|cut -d' ' -f1`;do echo -e "`tput clear;read -p$p -n1 p`";ps wwo pid:6,user:8,comm:10,$p kpid -A;done …

Make any command read line enabled (on *nix)

2010/11/25

Make any command read line enabled (on *nix) […] <td> <div class="text codecolorer"> rlwrap sqlite3 database.db </div> </td> </tr> Enable readline even …


This website uses cookies to ensure you get the best experience on our website. Learn more Got it