Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Don Cragun
6,553
Posted By Don Cragun
They are present in ksh93 93u+ and later...
They are present in ksh93 93u+ and later releases. I don't think they were present in ksh93 93t+.
6,553
Posted By Don Cragun
One could easily argue that David should have put...
One could easily argue that David should have put ksh in the version output instead of sh, but that isn't what it does. David and Glenn have argued that ksh is frequently install as (or linked to)...
6,553
Posted By Don Cragun
Hi RudiC, That version output is from a ksh93...
Hi RudiC,
That version output is from a ksh93 built in 2009. It is before ksh93 added printf '%(date_format)T' to its repertoire (in 93u+).
- Don
6,553
Posted By Don Cragun
If you have a very recent bash, you might also...
If you have a very recent bash, you might also try that ksh printf command with it. If that doesn't work, you can try perl as discussed in General Purpose Date Script...
6,553
Posted By Don Cragun
With ksh version 93u+, the command: printf...
With ksh version 93u+, the command:
printf '%(%m/%d/%Y)T\n' "today $((($(printf '%(%u)T' today) + 1) % 7)) days ago"
prints today's date if you run it on a Saturday and prints the previous...
6,553
Posted By Don Cragun
You should know by now that you need to tell us...
You should know by now that you need to tell us what operating system and shell you're using. So, what shell are you using?

Do you have access to a 1993 or later Korn shell? If so, what output...
6,553
Posted By Don Cragun
Did you look at the code for that function? Read...
Did you look at the code for that function? Read the comments that explain what it does. That function doesn't print anything; it sets variables you can use after you call it.
6,553
Posted By Don Cragun
Hi SIMMS7400, In post #51 in your earlier...
Hi SIMMS7400,
In post #51 in your earlier thread (Parsing a column of text file - best practices...
6,553
Posted By Don Cragun
Note that if this customer always has a fiscal...
Note that if this customer always has a fiscal week #53, there must be some years that don't have a fiscal week #1.

I have never seen a fiscal calendar like this used under any circumstances. ...
Showing results 1 to 9 of 9

 

Featured Tech Videos

All times are GMT -4. The time now is 01:27 PM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy