Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!rutgers!att!ihlpb!mackey From: mackey@ihlpb.ATT.COM (R. E. Mackey) Newsgroups: comp.unix.questions Subject: Re: slicing the date Message-ID: <10033@ihlpb.ATT.COM> Date: 29 Mar 89 15:25:14 GMT References: <216000010@s.cs.uiuc.edu> Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 19 In article <216000010@s.cs.uiuc.edu>, carroll@s.cs.uiuc.edu writes: > [......] The question is, how can I cut up the output of > date to put the hours, minutes, and seconds into seperate variables? Thanks! The line eval `date '+hr=%H;min=%M;sec=%S'` will set hr to the current hour, min to the current minute, and sec to the current second. You're welcome. -- Ron Mackey - AT&T Bell Laboratories UUCP: att!ihlpb!mackey 2000 N. Naperville Road WORK: (312) 979-2140 Naperville, Illinois 60566 OFFICE: IH 2C-423