Bash Scripting

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: KevinO
Date:  
Subject: Bash Scripting
Bryce C. wrote:
> Unfortunately, bash doesn't put the executed output in the variable, it
> puts the text itself in. Any other ideas?


Are you referring to this ? : DATE=`date +%m-%d-%y`

This does indeed work. Make sure that you get the ticks pointing the right
way. Make sure that you are using bash. The first line of your script may need
to be : #!/bin/bash to insure this.


--
Kevin O'Connor

"People will be free to devote themselves to activities that are fun ...

The GNU Manifesto - Copyright (C) 1985, 1993 Free Software Foundation, Inc.