Friday, April 28, 2006

Unix : Find files modified within a certain time period

So there I was trying to find where this application stored its @#$% log file.

Eventually had a brainwave and decided to search for all files recently modified.

A quick Google bought up the Find command:

Find / -mtime [+|-] value

The "+" or "-" indicates before or after e.g.

-4 indicates all files modified within the last 4 days

+4 indicates all files modified more than 4 days ago

4 indicates all files modified 4 days ago only

0 indicates all files modified in the last 24 hours.

Enjoy!

Monday, April 03, 2006

Misc : Multiple IDE's

I rarely have less than 3 open at any one time covering a range of languages:

Java , C, C++ , C#, Cobol ...

What's really confusing is when you write a correct statement in the wrong language

e.g. in the Cobol IDE, I wrote:

Temp = 1;

and then you wonder why the compiler complained!

If you don't have your orientation correct, it's a puzzle because it *looks* correct. The moment you realise you are in the Cobol IDE, the penny drops.

The correct statement is of course:

Move 1 to Temp.

Enjoy!