![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| comparing files - adding/subtracting/formating columns | oabdalla | Shell Programming and Scripting | 7 | 06-13-2008 12:20 AM |
| Subtracting date / timestamps | roadcyclist | Shell Programming and Scripting | 0 | 06-21-2006 11:51 AM |
| subtracting a days from current date | rameshspal | Shell Programming and Scripting | 1 | 03-09-2006 10:18 PM |
| Date two days ago | markhughes04 | Shell Programming and Scripting | 7 | 06-14-2005 11:48 AM |
| Subtracting Two months from date | jwatson12 | UNIX for Dummies Questions & Answers | 3 | 09-13-2002 10:06 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
adding or subtracting days in the o/p of date
how can we add or subtract days from the output of date command in unix...
like if i want to subtract a day from the result of date command like this.. v_date=`date +%Y%m%d` this wud give me 20080519 now i want to subtract one day from this.. so tht it wud give me 20080518.. how do i do this?? also if i want to put a cond if its a thursday then sub 3 days from the date.. so tht it gives me monday's date.. how to do this??? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
| Google The UNIX and Linux Forums |