Sponsored Content
Full Discussion: Two days ahead
Top Forums UNIX for Beginners Questions & Answers Two days ahead Post 303039818 by gull04 on Wednesday 16th of October 2019 04:48:58 AM
Old 10-16-2019
Hi,

You should be able to use the date command as follows/

Code:
DATE=$(date -d "+2 days")

You don't say what the OS is so your local date command may vary.

Regards

Gull04
 

7 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Experts Only! Hard Question Ahead!!!!

SunOS5.8 is a radical departure from SunOs4.X in many ways. one of the important differences is the handling of devices. Adding devices under SunOS4.x required a kernel reconfiguration, recompliation and reboot. Under SunOS5.X, this has changed with the ability to add some drivers on the fly.... (1 Reply)
Discussion started by: Foo49272
1 Replies

2. HP-UX

Read-ahead in HP-UX

One cool thing about unix is that it predicts disk blocks that you may need and tries to have them in core before you need them. Over the years, various unix vendors tried various algorithms to improve performance. HP has patented their latest algorithm... Multi-threaded Read Ahead Prediction... (0 Replies)
Discussion started by: Perderabo
0 Replies

3. Shell Programming and Scripting

PERL look ahead and behind ...

I would like to search a router config file for "ip address $ip", once found, I want to grab the line just before that contains "interface $interfacetype" basically saying, 10.3.127.9 is assigned to "Loopback1" given the below as an example. interface Loopback1 ip address 10.3.127.9... (1 Reply)
Discussion started by: popeye
1 Replies

4. AIX

CIO/DIO and JFS2 read ahead

Hi Guys, I wonder if after enabling CIO/DIO at the filesystem level and assuming that CIO/DIO will bypass the JFS2 read ahead available when not using CIO/DIO my questionis what parameters I can play with to tune/improve the CIO in order to obtain similar performance for sequential reads (... (7 Replies)
Discussion started by: hariza
7 Replies

5. UNIX for Dummies Questions & Answers

Selecting line ahead and next using AWK or SED

:confused: Good Day, I have this script that gets the archive names and the time it applies based on the alert log. The application of archives are of daily basis and usually many so having this script helps my job become easier. My problem is that when i get all the time stamps and... (1 Reply)
Discussion started by: ownins
1 Replies

6. Shell Programming and Scripting

trim 0 ahead of a time,pls help~

Hi, I am trying to write a ksh to compare the time in a date date Thu Jul 1 09:01:24 PDT 2010 when I try to get hour date | awk '{print $4}' | cut -f1 -d: 08 how I can trim the 0 ahead of 08 to make it 8? please help~ (7 Replies)
Discussion started by: netbanker
7 Replies

7. Windows & DOS: Issues & Discussions

NFS Share Time an Hour Ahead

Time on unix server shows 8:00a CST Time on Windows 7 Box shows 8:00a CST However when you access an NFS share the time stamp on the files show an hour ahead? Talking about a newly created file shows an hour ahead so at 8:00a the file will show a time stamp of 9:00a CST the problem it... (1 Reply)
Discussion started by: Paul Standley
1 Replies
ALEVT-DATE(1)                                                      Teletext time                                                     ALEVT-DATE(1)

NAME
alevt-date - display/set time received via Teletext SYNOPSIS
alevt-date [options] DESCRIPTION
alevt-date displays the time received from a Teletext source. It can be used to set the system time. The date is not interpreted (not even transmitted on most channels). So it allows only adjustment of +/-12 hours. The default allowed adjustment is limited to +/-2 hours (use -delta to change). Without the -set option it just displays the date in the format of the date(1) command. OPTIONS
A summary of options is included below. -set Set system time from time received via Teletext. -delta seconds Maximum allowed adjustment made to the system time. The default is 7200 seconds (2 hours) and the maximum that may be given is 12 hours. -format string Format string to used to print the time. Look at strftime(3) for possible control sequences. -vbi device Use the given device name. Default: /dev/vbi, /dev/vbi0, /dev/video0, /dev/dvb/adapter0/demux0 tried in this order. -timeout seconds If the time can't be detected in seconds, the program is terminated with a SIGALRM. -progname name Specifies the program name if using the DVB interface. -pid pid Specifies the teletext PID if using the DVB interface. --help Show summary of options. --version Show version of program. Before starting this program, you have to set the TV channel with another program like xawtv of set-tv. Note: This program does not set the battery backed up clock of your computer. clock -w will do this. The -progname or -pid option specifies the program or teletext PID if using the DVB interface. If neither of these two options is used, alevt outputs informations about the currently accessible streams and uses the first of these PIDs as default. This output contains the PIDs and names that can be used as an input for the -progname or -pid option in the context of the currently chosen TV channel. FILES
/dev/vbi* /dev/dvb/adapter*/demux* SEE ALSO
alevt(1x), alevt-cap(1), strftime(3), date(1), clock(8). BUGS
This program is just a toy. The time transmitted by the TV stations is more than inaccurate. Some are within a few seconds of your local time reference but others are more then 15 minutes off. You've been warned. (And don't assume the pkt8/30 time is better. It's even worse.) No bug reports to <froese@gmx.de> *g*. LINUX 1.6.2 ALEVT-DATE(1)
All times are GMT -4. The time now is 07:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy