bash

bash colors

2009/11/16

For those of the terminal freaks, color is a bliss. But have you tried all the colors in the terminal. Today someone forwarded me a bash one liner for the same. Not sure where he got this from, anyway …

Get your external IP address

2009/11/04

$ echo -e "GET /automation/n09230945.asp HTTP/1.0rnHost: whatismyip.comrn" | nc whatismyip.com 80 | tail -n1 […] <a href="http://www.commandlinefu.com"><img …

Stop long commands wrapping around and over-writing itself in the Bash shell

2009/10/12

Stop long commands wrapping around and over-writing itself in the Bash shell […] shopt -s checkwinsize […] add the command either in /etc/profile or ~/.bash_profile so that this is …

Script to generate a html file with link to all files in directory

2009/09/26

ls -1 |awk -F&#8221;.&#8221; '{print &#8221; &#8221;,$2,&#8221;.&#8221;,$3,&#8221; […] And if you want to do it recursively ls -1R |awk -F&#8221;.&#8221; …

Database of vulnurability at milw0rm.com – udpate and makeindex with cron.

2009/09/08

I am quite regular visitor of milw0rm and generally try to keep up with the vul&#8217;s. For doing this I wrote a small scripts rather set of scripts to keep myself update. Here&#8217;s what …

bash tutorial for begineer and experienced.

2009/07/20

I having been looking for something like this for sometime. Found <a href="http://beginlinux.com/desktop_training/comm/shells/232-bash" target="_blank">this while searching. …

Get you ip address like whatismyip.com

2008/11/30

For last couple of days, I was thinking of putting this. I was thinking of some way to get the IP address of the client directly rather than going through some site or parsing the content. So <a …

parse and paste text

0001/01/01

Lot of times, I copy the text but before pasting want to remove a word or make some other changes or add “wget” to the URL, quite common. So, I came up with this alias replace='echo $(xclip -i)|sed …


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