Summary: Is there a way to know the exact date 14days ago? And have it in this format YYYYMMDD. I want to store this date in a variable, then touch it. Example...
Summary: When doing a ls -l command, the date for recently modified files appears as, for example, Jul 9 17:03. For much older files, it appears as, for exam...
Summary: I need to calculate the Yesterday's date and received a good code from Unix forum. I need to assign the yesterdays Date (MONTH and DATE eg. 1229 for D...
Summary: I want to add a number to a date and resolve the new date. For example: I know the date of today and I want to know the date before a week (7 days) ...
Summary: Roger, your awk solution is a good approach, and joe gave you the syntax for capturing the date. The awk program cannot directly reference a shell var...
Summary: Hi guys. After much heartache I have finally learned the principles of operation of the basic calculator. However, I cannot calculate the cube root of...
Summary: As confusing as it sounded at first, it seems like this should be pretty easy. I am assuming that each entry above is on its own line, with the date a...
Summary: I would agree with the suggestion nails made in that second link, "...Perl is probably your best choice...". This is the Perl command for retrieving t...
Summary: hi again! another question, how do i ensure that the time in all the workstations are always in sync with the server. at the moment, i'm doing this ...
Summary: I have a UNIX box where in files are created every a5 minutes. I need to write a shell script which will take in the date as parameter and return me a...
Summary: I was wondering if there was an easy way to use cal with maybe either awk or sed to easily give the user the day of the week for the given day they en...
Summary: Hi. How do I adjust the date and time of my server? I type this. www3# date 0207021627 date: settimeofday: elevated security level: Operation not perm...
Summary: Hi, I am new to Unix shell scripting, starting to learn it. Can you please help me with this immediate requirement to code.. The requirement is as giv...
Summary: This should do the trick methinks. Use -help to read the little help thingy. #!/bin/ksh stty erase ^? function figureday { case $afchek in [Mm]on*) ...
Summary: I am writing a script that will create a tar ball of all of the lists on our server. This way I can stop doing it manually every week. So I write the...
Summary: I need to yank a line from a file (the line is and will always be #9), convert the date and place it back in the file. The date format is listed init...
Summary: Hi all, I have search in this forum and find some answer to use time (command) to calculate the elapsed time. I tried to take the output of time i.e....
Summary: Hi, I need help for a shell script to have a user enter a date into the program. When the date has been entered in format dd/mm/yyyy, i need the scrip...
Summary: One approach is to analyze the date-time from an ls -l. I would pipe it into awk for analysis. But it's a pain to compute 20 minutes back because yo...
Summary: perused entire forum and subject came up many times but was never addressed explicitly. i need a short script written entirely in korn shell (no C or...
Summary: Hi, was wondering if anyone has any ideas on how to output just the file name along with the date the file was created/modified in a specified directo...
Summary: I have written a script to automatically ftp a file from one server to another. I want to add the date and time to the extension of my file name. If m...
Summary: Repost. Hi guru's, Please help in writing a script for calculating the time difference for the 1st and last row. Sat Sep 10 10:00:07 2005 Sat Sep 10 ...