Re: QOUTES

From: Chris F.A. Johnson (cfajohnson_at_gmail.com)
Date: 01/13/05


Date: 13 Jan 2005 16:38:59 GMT

On Thu, 13 Jan 2005 at 16:17 GMT, senthilS wrote:
> I was working in a script and wanted to creat a file name as
>
> filename-[currentdate]

   It's not a good idea to use brackets in a file name; they may
   conflict with file-globbing.

> I tried few formats which did not work, when I tried the following one
> it did
>
> file="$inputfile-[`date '+%y-%m-%d %H:%M:%S'`]"

   It's also not a good idea to use spaces or colons in file names.

> In this when I take the space between `date '+%y
> I was getting a error.
> i.e --> when I use `date'+%y ---> I am getting an error message.
> Can anyone explain about this ??

   You need a space between the command and its arguments.

   Please post exactly what command you are having problems with, and
   the exact error messages, if any.

-- 
    Chris F.A. Johnson                  http://cfaj.freeshell.org/shell
    ===================================================================
    My code (if any) in this post is copyright 2004, Chris F.A. Johnson
    and may be copied under the terms of the GNU General Public License