Sponsored Content
Top Forums Shell Programming and Scripting Need to minus one day from a date given Post 303000103 by drl on Tuesday 4th of July 2017 10:02:40 AM
Old 07-04-2017
Hi.

If you can use ksh93, then there is extensive support for date manipulation.

See http://blog.fpmurphy.com/2008/10/ksh...ipulation.html for a number of examples ... cheers, drl
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to find previous month last day minus one day timestamp

Hi All, I need to find the previous month last day minus one day, using shell script. Can you guys help me to do this. My Requirment is as below: Input for me will be 2000909(YYYYMM) I need the previous months last day minus 1 day timestamp. That is i need 2000908 months last day minus ... (3 Replies)
Discussion started by: girish.raos
3 Replies

2. UNIX for Dummies Questions & Answers

print previous month (current month minus 1) with Solaris date and ksh

Hi folks month=`date +%m`gives current month Howto print previous month (current month minus 1) with Solaris date and ksh (7 Replies)
Discussion started by: slashdotweenie
7 Replies

3. Shell Programming and Scripting

how to obtain date and day of the week from `date` command

Hi, does anybody know how to format `date` command correctly to return the day of the week? Thanks -A I work in ksh.... (1 Reply)
Discussion started by: aoussenko
1 Replies

4. UNIX and Linux Applications

sqlite: calculating with dates - compare current date minus 6 months with stored record

Hi I have a table with name, date in format DD.MM.YYYY. I need to something like this (I try to explain in pseudo code) if SYSDATE (current date) minus 6 months > $expiry date print OK else print NOK with $name and $expiry date I know this is possible with Oracle. How to do this... (0 Replies)
Discussion started by: slashdotweenie
0 Replies

5. Shell Programming and Scripting

finding the previous day date and creating a file with date

Hi guys, I had a scenario... 1. I had to get the previous days date in yyyymmdd format 2. i had to create a file with Date inthe format yyyymmdd.txt format both are different thanks guys in advance.. (4 Replies)
Discussion started by: apple2685
4 Replies

6. AIX

Need to get the next day's date of the user entered date

I need to get the next day's date of the user entered date for example: Enter date (yyyy/mm/yy): 2013/10/08I need to get the next day's date of the user entered date Desired Output: 2013/10/09Though there are ways to achieve this is Linux or Unix environment (date command) ,I need to... (1 Reply)
Discussion started by: rpm120
1 Replies

7. HP-UX

Actual date minus six months (HP UX)

Hi there, is it possible to get the actual date minux six months with just a simple command? It's easy with Linux but on HP Unix (for me) impossible ;) Best wishes (3 Replies)
Discussion started by: System
3 Replies

8. Homework & Coursework Questions

How to minus 2 month from current date?

I am running a script in ksh to get the 2 months back date from system date.The below code is giving correct date output from putty command prompt.But while running the script is .ksh file it is giving the error below.Please suggest. ; d=a; y=a m-=num while(m < 1) {m+=12; y--}... (1 Reply)
Discussion started by: hini
1 Replies

9. Shell Programming and Scripting

Date minus 1 day

Hi the below code is failing i am trying to generate do the following: 2014-10-22 11:26:00 (Substract 24 hrs) should produce 2014-10-21 11:26:00 I need the same formatting below because that gets inputted into code for an... (4 Replies)
Discussion started by: Samuel12
4 Replies

10. UNIX for Beginners Questions & Answers

Replace date in file every day with current date

I Have text like XXX_20190908.csv.gz need to replace Only date in this format with current date every day Thanks! (1 Reply)
Discussion started by: yamasani1991
1 Replies
LIGHTSPARK(1)						      General Commands Manual						     LIGHTSPARK(1)

NAME
lightspark - a free Flash player SYNOPSIS
lightspark [--url|-u http://loader.url/file.swf] [--disable-interpreter|-ni] [--enable-jit|-j] [--log-level|-l 0-4] [--parameters-file|-p params-file] [--version|-v] file.swf DESCRIPTION
Lightspark is a free, modern Flash Player implementation, this documents the options accepted by the standalone version of the program. The player is currently in Beta, support for any particular SWF file is not guaranteed You might wish to see the project website at http://lightspark.sf.net or our technical blog at http://allievi.sssup.it/techblog OPTIONS
--url loader.url/file.swf, -u loader.url/file.swf Pretends to be loading the file from an url --disable-interpreter, -ni Disable the ActionScript interpreter --enable-jit, -j Enable the ActionScript JIT compilation engine --log-level 0-4, -l 0-4 Sets the verbosity of the output, the default is 2 --parameters-file params-file, -p params-file Load flash parameters from file. Every odd line will be interpreted as a parameter name, with the following one as the value. --profiling-output profiling-file, -o profiling-file Output profiling data to profiling-file in a callgrind/KCachegrind compatible format --version, -v Shows lightspark version and exits. AUTHOR
lightspark was written by Alessandro Pignotti. This manual page was written by Jacopo Corbetta <j.corbetta@sssup.it>, for the Debian project (and may be used by others). May 29, 2010 LIGHTSPARK(1)
All times are GMT -4. The time now is 07:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy