Categories

 

May 2012
M T W T F S S
« Feb    
 123456
78910111213
14151617181920
21222324252627
28293031  

What I'm Doing...

PlaytimePriya and KunalIMG00015.jpgIMG00017.jpgFallColors.jpgSpring

Copy and paste in Vi/Vim

This is a neat trick to know and saves a lot of time:

Go to the beginning of the line where you want to start copying.
Make sure you are in the command mode. (Hit ESC).
Type “ma”. Which means, you are marking the spot with “a”.
Go to the line till where you want to copy.
type y`a (yank [...]

Share

Tips on unix find

Here is a nice tip on unix find..

$ find . cpio -pdumv /path/to/destination/dir

the files found by find are passed into cpio and it copies the files with the same permissions to the destination directory.

Share