June 2012

How to concatenate or join two lines in vim editor?

Use capital J or :join to combine the lines.

For example:

Vim Join Lines

keep the cursor in the first line to join the first and second line and press Shift+j. If you want to combine more line just keep cursor in first line and press Shift+J.

I have combine 10 lines using Shift+J, the result looks like below

vim_join_lines

CVS How to check the file has changed between releases

use cvs diff command with r option.

For example you want to compare REL3.2 with REL3.1 then

cvs diff -r REL3.1 -r REL3.2 sqlfile.sql

Clean duplicate files - img, vdo, doc,xls, mp3... in windows

We store photos, documents,music and video files in computer. We copy those files and keep it in different locations for some reasons and leave it as such. The days go on we forget about the duplication and it utilize the disk space. The performance goes down.

When i was searching for program to help to find the duplicate, i found this.

To count the number of words and letters in the document, paragraph or selected text

1. select the text
2. In status bar, click the words, it will show window with selected text - number of character(with out space), with space, number of lines, number of paragraphs,

By default it shows the entire document number of lines, characters, paragraphs.

Broadband uage Calculation

We are using broadband connections. After using specific amount of bandwidth, the service providers charge based on the usage.

So we want to measure how much we utilized the bandwith, based on that to plan. For this purpose, we can use BitMeter OS

Software.

You can get this software from

codebox.org.uk/bitmeterOs

It works in windows, linux and mac os also