I was trying an exercise of deleting lines from a file not starting with a particular string. The idea was to copy the desired lines to a temp file, delete the original file and rename the temp file to original file.
Following is what I was trying...
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode)