bash
some bash exercise for you
2011/02/15
Here is some teaser for you, can you figure out how this works:
bash regular expressions
2011/02/06
Here are some quick links on bash regular expressions, pretty good links to bookmark, if you use, regular expressions in bash regularly. I especially like the tldp link at number 3. …
bash math
2011/01/29
some quick links : http://mainstreetanswers.org/bash/math.php http://www.faqs.org/docs/abs/HTML/mathc.html http://tldp.org/LDP/abs/html/mathc.html
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 …
Bash Script Beautifier
2010/12/23
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;"> Image via <a …
intercept stdout/stderr of another process or disowned process
2010/11/23
The command is definately going to save your day if you have disowned the process by mistake. Only uses strace so might as well work on Solaris also, though not tried it. intercept stdout/stderr of …
Broadcast your shell thru port 5000
2010/11/20
Broadcast your shell thru port 5000 […] <td> <div class="text codecolorer"> mkfifo /tmp/fifo;(nc -q0 -l 5000 < /tmp/fifo &);script -f /tmp/fifo </div> …
Screen enable/disable logging in all windows
2010/11/19
If you use screen command a lot then this is something that you will like 🙂 Screen enable/disable loggin in all windows […] <td> <div class="text codecolorer"> bindkey ^l …