Good, but it's possible to do it even simpler.
perl -we 'use Date::Manip; for (@ARGV) { print UnixDate($_ . "/15","%m +\n") || "?\n"; }' january Dec 3 Apr MAY xJun
Output:
01 12 03 04 05 ?
In reply to Re^2: Quick search-and-replace month names for numbers
by ambrus
in thread Quick search-and-replace month names for numbers
by kangaroobin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |