I used to use
on my old server with FreeBSD, and now got to get the same result(current date -14 or -X days) in script running at another server, with Linux, but there's no such option for "date".
How can i solve the prob(counting with absolute day number is not a variant because result is used when workin with dirs YYYY-MM-DD format)?
The moon is a whole new family of calculations, perhaps best left to the rabbi, imam or Pope!
Isn't day of week a strftime() value? You can check the first/last day of month/year and calculate from there, right? Of course, you need a function to give access to the internal calendar, to get last day of month for month x, but that is pretty easy to write, I just need to steal another % code or two, not used by strftime(), to intercept and pre-process. Thirty days has September, . . . , leap year every 4 except 100 except 400 and off you go. Too bad the UNIX time will overflow signed int in 2038.
---------- Post updated at 12:32 PM ---------- Previous update was at 12:23 PM ----------
Yes, the David Korn is still with us, and getting the newer ksh opens a lot of new doors. Maybe BASH will pick up more ksh-isms. I am still a ksh guy, by immersion and satisfaction, especially on systems with <() = systems with /dev/fd/# like Solaris.
Basically I want to shorten URLs on my html pasting site (pasteht.ml), by using "/~a1Pha" instead of "/paste/a1Pha". The ID is 5 numbers and letters, both cases.
/~idnum serves /paste/idnum.htm
/=idnum serves /paste/idnum.htm
/paste/idnum redirects to /~idnum (to update any old... (0 Replies)
what if the difference between
I wrote a script with the second heading now when i change my heading to the first one ...the script is not executing well....im not getting the required output....any solution to this problem...or do i have to start the... (3 Replies)
could someone pls enlighten me on the difference between the "root" package and "usr" package?
Like in this example:
pkginfo -l SUNWGtku | grep -i desc
DESC: GTK - The GIMP Toolkit (Usr)
pkginfo -l SUNWGtkr | grep -i desc
DESC: GTK - The GIMP Toolkit (Root)... (6 Replies)
Sorry I need to Know How to connect to the Internet using Netscape in the GUI of the Red Hat Linux .....using phone line with a modem Us robbitics ....Such as in windows We add dial up adapter etc ......:confused: (1 Reply)