![]() |
|
|
|
|
|||||||
| 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 |
| Friendz.. plz help me on this date function. | psn123 | UNIX for Advanced & Expert Users | 14 | 07-23-2008 01:09 PM |
| Function to find day of any given date. | RRVARMA | Shell Programming and Scripting | 5 | 05-12-2008 12:19 AM |
| Date Function | charandevu | Shell Programming and Scripting | 1 | 04-02-2008 06:12 AM |
| Date Function | charandevu | Shell Programming and Scripting | 1 | 04-02-2008 04:44 AM |
| date function | abey | Shell Programming and Scripting | 2 | 02-27-2006 02:28 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#8
|
|||
|
|||
|
Hi,
sorry for the delayed response, just figured out. u can use: echo `echo '*time-0t86400=Y' | /usr/bin/adb -k | tail -2` to get yesterdays date. Thanks,
__________________
K a n d a n |
| Forum Sponsor | ||
|
|
|
#9
|
||||
|
||||
|
Whoa! Interesting approach, kandanmv! And I didn't know adb defaults the objectfile and corefile with -k like that. But it does seem to work.
|
|
#10
|
|||
|
|||
|
gee thanks.
but the easiest way would be to use perl # perl -e 'printf "%s", scalar localtime(time-86400)' regds,
__________________
K a n d a n |
|
#11
|
||||
|
||||
|
Or save yourself a few bytes:
perl -e 'print scalar localtime(time-86400)' |
|
#12
|
|||
|
|||
|
Thanks, kandanmv and PxT
Thanks, kandanmv and PxT. The Perl commands are useful.
|
|
#13
|
||||
|
||||
|
Perderabo's code was very helpful. I used it adn worked fine, except that my linux box was giving me errors on set and typset commands
Thanks Nitin |
||||
| Google The UNIX and Linux Forums |
| Tags |
| linux |
| Thread Tools | |
| Display Modes | |
|
|