Wednesday, September 10, 2008

Timestamp-to date

Some times I find it difficult to convert the number of seconds from epoch into human readable timestamp. Normally these number of seconds are stored for references as they are easy to manage. Here is the command which we can use in Linux:

date -d@1219310725

This will return

LINUX---adding directory recursively to cvs

It is a tedious task to add a complete directory structure to CVS. Please use these simple commands to add files/directories recursively

find . -type d -print | grep -v CVS | xargs -n1 cvs add
find . -type f -print | grep -v CVS | xargs -n1 cvs add