If you've got perl,
perl -e '@time = localtime(time() + 24*60*60);print "$time[3]\n"'
will do the same thing,
Fergal
On Wed, Nov 01, 2000 at 06:04:00PM +0000, Donncha O Caoimh wrote:
> *grrr*
> Trying to find the last day of the month in a shell script is easy in
> Linux.
> Just do
> date --date '1 day' '+%d'
> and check if the output is 01, but no such luck on Solaris. Anyone have
> any ideas how I could replicate the above on a Solaris box?
> (Besides installing the GNU tools!)
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!