Thx perfect, thats exactly what I need. But I'm afraid this doesn’t work for the first of a month for example 20130401 will then be 20130400 or I'm wrong?
-----Ursprüngliche Nachricht----- Von: IBM Mainframe Discussion List [mailto:[email protected]] Im Auftrag von Rafal Hanzel ZETO Katowice Gesendet: Donnerstag, 14. März 2013 13:23 An: [email protected] Betreff: Re: USS "date" command, subtract one day Maybe something like that, will help you: echo "`date +%Y%m%d` - 1" | bc --- Pozdrawiam/Best regards, Rafal Hanzel Programista systemowy, Dział Badań i Rozwoju Systemów Komputerowych Tel. +48 32 3589246, Fax +48 32 3589277, email: [email protected] Tel. kom. +48 501677656 Zakład Elektronicznej Techniki Obliczeniowej w Katowicach Spółka z o.o. 40-158 Katowice, ul. Owocowa 1 Sąd Rejonowy Katowice - Wschód w Katowicach Wydział VIII Gospodarczy Krajowego Rejestru Sądowego, KRS 0000051477 Kapitał zakładowy: 264500 zł NIP 634-013-11-06 http://www.zetokatowice.pl Jesteśmy uczestnikiem Programu RZETELNA Firma Sprawdź naszą rzetelność na http://www.rzetelnafirma.pl/8FGKEVFH Treść tej informacji może być poufna, w związku z czym powinna trafić bezpośrednio do rąk adresata. Jakiekolwiek jej ujawnianie, rozpowszechnianie, bądź kopiowanie jest zabronione. W przypadku omyłkowego otrzymania niniejszej informacji prosimy o poinformowanie nadawcy i usunięcie jej z komputera. W dniu 14.03.2013 12:54, Uwe Oswald napisał(a): > Hi, > > I dont know if this is the right forum but I hope someone could help > anyway. I want to subtract "one day" from the actual date with one USS > unix command. > > The actual date I get via "date +%Y%m%d" (for example 20130314), but > "date +%Y%m%d-1" or "...yesterday" don’t work. I have tried everything > without success. Does anybody have a tip for me? It must be achieved > within one command not more. > > Thx > Uwe > > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, send > email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
