Get your external IP address

$ echo -e \"GET /automation/n09230945.asp HTTP/1.0rnHost: whatismyip.comrn\" | nc whatismyip.com 80 | tail -n1

\"\"

by David Winterbottom (codeinthehole.com)

\"\"
\"\"

\"\"

URL: http://feedproxy.google.com/~r/Command-line-fu/~3/7xln2n56mnk/get-your-external-ip-address

\"Reblog

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

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 available to your shell.

* View this command to comment, vote or add to favourites * View all commands by settermjd

commandlinefu.com

by David Winterbottom (codeinthehole.com)

URL: http://feedproxy.google.com/~r/Command-line-fu/~3/_0MaJbX9Jvo/stop-long-commands-wrapping-around-and-over-writing-itself-in-the-bash-shell

\"Reblog

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

ls -1 |awk -F\”.\” \'{print  \”<p><a href=\”\”,$_,\”\”> \”,$2,\”.\”,$3,\” </a></p>\” ;}\’ > index1.html

And if you want to do it recursively

ls -1R |awk -F\”.\” \'{print  \”<p><a href=\”\”,$_,\”\”> \”,$2,\”.\”,$3,\” </a></p>\” ;}\’ > index1.html