Bash Scripting

KevinO plug-discuss@lists.plug.phoenix.az.us
Sat, 13 Apr 2002 13:53:28 -0700


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.