Quote:
Originally Posted by
wnaguib
The all three links is how to transfer a 8-digit date to a normal julian date and do arithmatic actions
My request was on a 14-digit date YYYYmmDDHHMMSS time difference.
Part of your problem is that date math is a royal pain in Solaris. None of the "easy" ways work. Instead of rewriting huge, ugly, and potentially-buggy scripts from scratch, people will refer you to the better scripts people have already written, which we have in that FAQ.
So you're left with the problem of squishing your data to fit into these scripts. If you'd even had
pseudocode people would be much more willing to help you. Just demanding that everyone write everything for you, start-to-finish, isn't just impolite -- it looks suspicious. We get many people trying to trick us into doing their homework for them.
You can't write shell code, fine. That doesn't mean you can't describe how you'd try to solve this problem in general. I'd happily give answers to questions like "How do I read a string from file?", "how do I break a string into parts?", "how do I do arithmetic in shell?", and "how do I put these things together like ...?"