Srini's Point of View

My thoughts on technology, food and other fancies…

More unix find tips

There are so many little things to remember in this command that I always have to lookup what switches to use. So here are a few ways of using find

To find all files modified in the last 24 hours (last full day) in current directory and its sub-directories:

find …

Copy and paste in Vi/Vim

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

  1. Go to the beginning of the line where you want to start copying.
  2. Make sure you are in the command mode. (Hit ESC).
  3. Type “ma”. Which means, you are marking the spot with “a”.
  4. Go to the …

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.