in reply to mkdir unless dir already exists.

38 characters:

$_="$tftpdir/$archive";-d||mkdir$_,755

Or if you can assume that the user has a decent umask value set, we're down to 34:

$_="$tftpdir/$archive";-d||mkdir$_

Oh, sorry, I must be in the wrong place, could anyone direct me to the green?

Replies are listed 'Best First'.
Re: Re: mkdir unless dir already exists.
by Cine (Friar) on Aug 21, 2001 at 23:42 UTC
    mkdir"$tftpdir/$archive";
    Less ;)

    T I M T O W T D I