I have a line from one of my shell scripts to load the current date and
time into a variable:

     $curdttm = 'echo $blank |date +%Y%m%d-%H%M'

I have used this on both AIX and HP-UX and it has worked great.

Doesn't do diddly on my Linux box but set the $curdttm variable to a
value of $'echo $blank |date +%Y%m%d-%H%M'.

I know someone out there will have another way to do this.

Thanks.

-- 
...Rob
 
=====================================================================
Robert Goshko                  Axis Computer Consulting Services, Inc
President                              Sherwood Park, Alberta, Canada
http://www.axis-dev.com/      Supporting the Revolution In Your World
=====================================================================
 
  1:15pm  up  3:46,  2 users,  load average: 1.50, 1.57, 1.66

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to