bash
Handy one-liners for SED
2010/09/14
Here are some links to sed one liners, pretty useful if you want to use the power of sed. <a …
Remove some path from the PATH variable temporarily.
2010/09/04
How many times has it happened to you that you are working on some linux platform (like Fedora/Ubuntu/CentOS etc) and suddenly you see that you need to remove some path from the PATH variable so that …
tee to a file descriptor
2010/08/13
tee to a file descriptor […] 1 $ tee >(cat – >&2) the tee command does fine with file names, but not so much with file descriptors, such as &2. This uses process …
Best Mobile Internet Browser (Opera Mini vs. SkyFire)
2010/08/07
Showdown: Best Mobile <a class="zem_slink" title="Internet" rel="wikipedia" href="http://en.wikipedia.org/wiki/Internet">Internet Browser (<a …
when you press f9 ‘paste’ is on , press f9 again and ‘paste’ is off, and so forth (works in insert-mode and command-mode)
2010/08/02
<a class="zem_slink" title="Vim (text editor)" rel="homepage" href="http://www.vim.org/">vim’s pastetoggle: when you press f9 …
Auto Key press fill forms through simulating key presses | Linux.com
2010/07/31
This script can be used to repeatedly press <a class="zem_slink" title="Electronic keyboard" rel="wikipedia" …
List of commands you use most often
2010/07/25
$ history | <a class="zem_slink" title="AWK" rel="homepage" href="http://cm.bell-labs.com/cm/cs/awkbook/index.html">awk '{a[$2]++}END{for(i in a){print …
Bash Examples – Mistakes to Avoid
2010/07/23
A bash script is a text file containing a list of commands to be executed by the bash shell. A long time back, I had written a guide on Bash scripting which teaches you the basic syntax of bash …
Paste clipboard is bash or shell scripts with modification.
2010/07/20
Today I had a issue where I wanted to paste the clipboard to a shell script after removing the spaces. So, I went hunting for a way to do this. Finally I came up with this: […] sudo yum install …
Linux command to repeat a string n times - Super User
2010/07/20
I was working on something and needed to output the string n times. I have required this even to print a line with ’-’ or ’=’ but this time I badly wanted it in …
concatenate compressed and uncompressed logs
2010/07/15
$ find /var/log/apache2 -name 'access.loggz' -exec <a class="zem_slink freebase/guid/9202a8c04000641f800000000001abd9" title="Gzip" rel="homepage" …
CLI Color and bash prompt.. some colored fun with prompts in bash
2010/06/29
There are two ways to do it, one is with tput command. We will see that some other time, today we will consider the escape sequence way. First we need to understand the colors as understood by bash. …