10-25-2010
Broken link FAQ date arithmetic with shell
page
unix com/answers-frequently-asked-questions/13785-yesterdays-date-date-arithmetic.html
Date Arithmetic with the Shell
has link of
www samag com/documents/s=8284/sam0307b/0307b.htm
which is no longer.
Is this the correct place to post this?
and I got message
You are only allowed to post URLs once you have at least 5 posts.
This User Gave Thanks to dgerman For This Post:
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I would appreciate if anyone knows how to perform adding to date.
As for normal date, i can easily plus with any number.
But when it comes to month end say for example 28 Jun, i need to perform a plus with number 3, it will not return 1 Jul.
Thanks in advance for your help. (4 Replies)
Discussion started by: agathaeleanor
4 Replies
2. Fedora
Hey, I just wanted to know how one can write simple arithmetic like addition, subtraction, multiplication and division in shell-script. (14 Replies)
Discussion started by: #moveon
14 Replies
3. Shell Programming and Scripting
Hi,
I need to process a file which contains below data. Usually the files contains both Start and Finish time. but for Few records, it contains only Start. For those records I need to add the finish line by adding 5 minutes to Start time.
Started BBIDX Tue Jun 1 15:15:11 EDT 2010 292308... (1 Reply)
Discussion started by: siba.s.nayak
1 Replies
4. Post Here to Contact Site Administrators and Moderators
(split from another thread)
Hi.
Can you please post a copy of the exact link you used?
I have no trouble accessing either the readme, or the link to "Featured Books and Articles by Active Forum Members - Links"
Thanks. (2 Replies)
Discussion started by: Scott
2 Replies
5. Post Here to Contact Site Administrators and Moderators
Dead link from FAQ, then Technical FAQ:
Senior Advisor - https://www.unix.com
(Was about to suggest that a O/P read this FAQ). (9 Replies)
Discussion started by: methyl
9 Replies
6. Shell Programming and Scripting
I have a file (main.lst) containing a list of dates in DDMMYYYY format. The dates will mostly be the same but it is possible to have multiple dates and these need not be in chronological order. I have another file containing another list of dates (holidays.lst).
The task is to get the latest... (5 Replies)
Discussion started by: elixir_sinari
5 Replies
7. Web Development
Hi all - I work for an organization that maintains 40 web sites, which run on a UNIX box. We're looking for software that can sit on the UNIX box and check for broken links/orphans on all of our sites....we'd like to schedule it to run nightly and produce a report....anyone know of something that... (1 Reply)
Discussion started by: dcasteve
1 Replies
8. Red Hat
Hi all,
as i have multiple broken pipes on ssh sessions,
i need to find out after how much time it happens,
ssh root@testServer
root@testServer's password:
ssh:notty
Last login: Thu Apr 6 06:41:16 2017 from 10.10.10.2
#
but when broke pipe happen i don't have any idea after how much... (3 Replies)
Discussion started by: charli1
3 Replies
9. Shell Programming and Scripting
Hello fellow forum members,
I wrote below piece of code to calculate the date after a given date -
date=$DATE_FINAL
declare -a max_month=(0 31 28 31 30 31 30 31 31 30 31 30 31)
eval $(echo $date|sed 's!\(....\)\(..\)\(..\)!year=\1;month=\2;day=\3!')
(( year4=year%4 ))
(( year100=year%100... (9 Replies)
Discussion started by: ektubbe
9 Replies