On Tuesday 05 February 2002 22:16, Robert Goshko wrote: > 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.
Does this help? >curdttm=`date +%Y%m%d-%H%M` >echo $curdttm 20020205-2231 note use of backticks rather than single quotes -- Michel Clasquin, D Litt et Phil (Unisa) [EMAIL PROTECTED]/unisa.ac.za http://www.geocities.com/clasqm This message was posted from a Microsoft-free PC ...hey, at least a wild goose chase gives you some exercise-Neal Stephenson
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
