Operating System - HP-UX
1822029 Members
3316 Online
109639 Solutions
New Discussion юеВ

It's Clay's "Date Hammer" time

 
SOLVED
Go to solution

It's Clay's "Date Hammer" time

Easy actually, & God forgive me but, it does not work on Sun, minor fixes I guess, but I dont really have the time to play with it. Perhaps, you've done it already?
If it ain't rough it ain't me
8 REPLIES 8
H.Merijn Brand (procura
Honored Contributor

Re: It's Clay's "Date Hammer" time

Did you get his latest (perl) version?
Enjoy, Have FUN! H.Merijn

Re: It's Clay's "Date Hammer" time

In my company, PERL is a sin
If it ain't rough it ain't me
Pete Randall
Outstanding Contributor

Re: It's Clay's "Date Hammer" time

Don't say that in Procura's presence. ;>)

Pete

Re: It's Clay's "Date Hammer" time

Nothin personal procura, I script some perl myself and even managed to install it on some dev boxes. It's those architects, they jealously guard the technology brought on prod
If it ain't rough it ain't me
Patrick Wallek
Honored Contributor
Solution

Re: It's Clay's "Date Hammer" time

I got this to work on a Sun box a couple of months ago. I don't have the version with me since that job ended in May. :(

Anyway, I think the only things I did were: 1) Change the shell so that it uses the ksh and 2) Change all occurrences of awk to nawk.

I believe that should do it for you.
A. Clay Stephenson
Acclaimed Contributor

Re: It's Clay's "Date Hammer" time

I remember Patrick mentioned to me that he did port it to Solaris and that he only made the changes he mentioned. My approach would be to change the 'shebang' to ksh and then mv awk to oawk and link nawk to awk. nawk is backward compatible to awk so there is really no downside to this.

If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: It's Clay's "Date Hammer" time

Okay, here's the 'Official' version that should run on Solaris, Linux, and HP-UX. It does a $(type nawk 2>/dev/null) and if found uses it rather than 'awk'. It also invoke ksh.

I don't have a Solaris box handy to test it on but if it needs any other changes, let me know.


If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor

Re: It's Clay's "Date Hammer" time

In case you want it, here is the version that I converted to work on Sun.

I had a friend e-mail it to me.