Quoting Bob Proulx <[EMAIL PROTECTED]>: > Try this: > ...
Thanks Bob, your answer is clear. THe problem i had was I want to know if the directory already exists. Your response and some other codes let me to something like: touch /a/b/c/unique-file-name if [$? -eq 0] then # /a/b/c/ exists rm /a/b/c/unique-file-name else # not exist or error creating the file mkdir -p /a/b/c/ fi It would however be nice if there was a way to have a value returned from mkdir if the directory already exists, perhaps this could be turned into an enhancment request? That would save creating/removing a file, and all other problems that may or may not occur in this action. Frank IJskes =