bash
Getting your wordpress self hosted stats on your console with bash script.
2010/06/29
Some time back I wrote a blog on how to get your site stats using curl in <a class="zem_slink freebase/en/bash" title="Bash" rel="homepage" …
wordpress blog stats monitoring from remote using curl and bash and send it in mail.
2010/06/25
Here’s something that I had been planning to do for sometime now. I have my blog on wordpress and have Statpress plugin installed. The plugin does give me a good idea of the visits to my …
Delete Files older than 14 days
2010/06/25
Taken from Dzone. […] @echo on setlocal set srcDir=. […] Read more: <a href="http://snippets.dzone.com/posts/show/10441">http://snippets.dzone.com/posts/show/10441
Magic space on the current command line
2010/06/25
# For how to set up magic space for Bash see: # – http://www.ukuug.org/events/linux2003/papers/bash_tips/#slide15 # – http://codesnippets.joyent.com/posts/show/1690 man bash 2>/dev/null | less -p …
bash one liner to change/remove test pattern from config file or text file.
2010/06/25
Problem: I had a directory with a lot of config files in the ini file format, i.e. name and value separated by equals. Some/all of these contained some directory names and other values which had to be …
Quick one liner bash function to navigate parent directories quickly
2010/06/25
up () { for i in $(seq 1 $1) ; do cd ..; pushd +1 ; done; } — if you like the popd and pushd way .. up () { for i in $(seq 1 $1) ; do cd ..; done; } — otherwise .. <div …
find duplicate entry in a list in bash with sed
2010/06/25
Here I will take an example of rss2email list, but I guess I will be able to pass on the concept. Here is example of the output of the r2e list command: […] 1: …
remove/replace text/path in config file.
2010/06/25
Lot of times I end up changing a particular text in config file to some other text. And when I have to do it for multiple files, all files having the text in multiple places, I end up opening the …
bash script to change the vim colorscheme from the list of locally available schemes
2010/06/24
Today I was just wondering how good it would be to have a script to change the <a class="zem_slink freebase/en/vim" title="Vim (text editor)" rel="homepage" …
Script to add all the partitions to the fstab.
2010/06/24
I wrote a simple script today to get all the partitions on all the disks and then create <a class="zem_slink freebase/en/fstab" title="Fstab" rel="wikipedia" …
Filename completion in Linux with mixed case and ignored case.
2010/06/23
This is one of my favourites, alwahs keep it handy. Linux is case sensitive by nature but you will always find filenames jumbled up in the case. So what is the solution: […] bind ”set …
cdargs – bash cd command with bookmarks and browser.
2010/06/22
cdargs is a <a class="zem_slink freebase/en/bash" title="Bash" rel="homepage" href="http://tiswww.case.edu/php/chet/bash/bashtop.html">bash shell cd with …