Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

subtracting a days from current date

Shell Programming and Scripting

Thread Tools Search this Thread Display Modes
Old Unix and Linux 03-10-2006   -   Original Discussion by rameshspal
rameshspal rameshspal is offline
Registered User
Join Date: Dec 2005
Last Activity: 13 March 2006, 4:20 AM EST
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
subtracting a days from current date

Hi i am trying to subtract days from current date. For example todays date is 10/03/2006. If i subtract 2 days it should give 8/03/2006. I am also trying to find the access date of a file in dd/mm/yyyy format. Can any one please help in how to do this.

Sponsored Links
Old Unix and Linux 03-10-2006   -   Original Discussion by rameshspal
vino's Unix or Linux Image
vino vino is offline Forum Advisor  
Supporter (in vino veritas)
Join Date: Feb 2005
Last Activity: 8 February 2016, 5:12 PM EST
Location: Sydney, Down Under
Posts: 2,848
Thanks: 0
Thanked 13 Times in 13 Posts
Welcome to the forum. You must have read the rules. It says

(5) Search the forums database with your keywords before asking.

Korn Shell Script - Getting yesterdays date
How to find Previous date and Coming date
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Number of days between the current date and user defined date hiten.r.chauhan Shell Programming and Scripting 1 03-01-2011 10:13 AM
Adding or subtracting days from current date in batch script anand1773 Windows & DOS: Issues & Discussions 2 01-12-2011 03:38 PM
Date after 5 days from current date in YYYYMMDD format needyourhelp10 Shell Programming and Scripting 8 09-30-2010 05:33 PM
How to find a date which is 7 days past when given current date ladtony Shell Programming and Scripting 17 04-09-2009 05:06 PM
adding or subtracting days in the o/p of date St.Fartatric UNIX for Dummies Questions & Answers 1 05-19-2008 08:10 AM

All times are GMT -4. The time now is 02:58 PM.