tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ Force use of sh

while read do makes bash forget ▻

ftp - mkdir using environment variables

In article <ZWNH3.68$iG2.3404@client>,
Peter Steele <psteel@standardelectric.com> wrote:
>test=$(date +%m%d%y)

I'd strongly recommend you use ISO8601 format dates: they're
comprehensible to those of us not in the US; they don't have any
Y2K issues; and as an added bonus lexicographic ordering is also
chronological ordering.

   test=$(date +%Y-%m-%d)

or

    test=$(date +%Y%m%d)

>and I wish to ftp to a host on a nightly basis and automatically create a
>directory with this variable's name, i.e. mkdir $test.

How are you driving ftp?

>I have tried numerous forms of the mkdir command without success. Any
>suggestions?

Maybe you could show us a couple of the things you have tried, and how
they failed?  It's much easier to determine what's wrong with a concrete
example, than a vague "it doesn't work".

Tim.
--
Tim Goodwin   | "[ `static' ] is so overloaded in the C/C++ world that
Leicester, UK | I try to avoid it whenever I can't." -- Larry Wall

Original headers:

From: tjg@star.le.ac.uk (Tim Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: ftp - mkdir using environment variables
Date: 28 Sep 1999 11:43:17 +0100
Organization: University of Leicester, UK
Message-ID: <7sq64r$tlv$1@ltpcg.star.le.ac.uk>
References: <ZWNH3.68$iG2.3404@client>

△ comp.unix.shell △

◅ Force use of sh

while read do makes bash forget ▻