-
bash/zsh vs. PowerShell find files
Trying to make the basic Unix find pattern happen in PowerShell.
-
perl script to generate a list of Julian day/day of year dates, given start and end.
I discovered myself on a unix system with a ‘date’ utility that only accepts the -u and + parameters, a fairly basic perl install, and lots of archives that are listed by the “Julian day” (day of year) date. I put together a perl script using the functions I had at my disposal. The script…
-
Date formatting for Single Unix Specification(R) versions of “date”
The date command is wonderful for formatting dates, as such date –date=”2010-01-01″ +%Y%j But what happens when you’re on a system whose date command only supports the -u [UTC] and + [for formatting] options? Below is a quick hack in straight C that provides the ability to format a date that you provide. This is…