Tuesday, October 4, 2011

Vim - Join Lines with a Comma (or any other character)

Step 1 : Put the desired character at the end of each line. I will use a "," as an example

:%s/$/,/g

Step 2 : Join the lines together

%j!

Monday, October 3, 2011

Post on Logging.

My post on logging in production

http://sandeepsinghal.wordpress.com/2011/09/18/better-you-log-in-development-less-you-will-bleed-in-production/

Google Code Page for Unix Utils

 Adding some of my utility shell scripts to a common google page.

http://code.google.com/p/nixtils/ 

Monday, July 25, 2011

Linux - See which process is using which port

netstat -anop

Then use ps and grep to find the process using this port

Windows - See what processes are using which ports

netstat -ano

You can then use the task manager to see the process id of the owning process.

Tuesday, February 23, 2010

Installing xmllint on cygwin

Select the following pacakges
  • libxml
  • libxslt

Sunday, December 27, 2009

symbolic links in windows

junction - sysinternal tool for winxp and above

mlink - with vista and above