Tag Archives: unix

Linux – Calculating relative dates

If you need to generate a relative date in a shell script the Linux date command will do the needful, though there are some platform differences you might need to be aware of Continue reading

Linux – Blinding Find

A little understanding of how find expressions work makes it easy to filter its output to exclude certain files and directories. Continue reading

Linux – Counting code lines with the Unix find command

Here we use the Unix find command in conjunction with cat and wc to get a picture of the number of code lines in a directory hierarchy. Continue reading

Linux – Finding distinct file types with the find command

An example of using the Unix find command to quickly check out the number of different file extensions in a directory tree. Continue reading