Re: [maildropl] how to test if a maildir exists
Brought to you by:
mrsam
From: Roman N. <neu...@be...> - 2003-01-29 16:20:37
|
# sal...@gm... / 2003-01-29 16:54:00 +0100: > so far my tests look like: > > if (`test -d $DIR && echo y`) > { > to $DIR > } > > it works, but i could imagine there to be a better way. any > suggestions? maildropfilter(5): RETURNCODE This variable is set when maildrop runs the xfilter command, or a command that's specified within a pair of backtick characters ( command substitution ). The RETURNCODE variable will be set to the exit code of the command, after it completes. > legally execute a president: > exec $(echo 'george w. bush' | sed 's/^.* \(.\)u/\/\1in\//') nice :) this would make it a bit more readable (I don't know it that's feasible :) sed -E 's;^.* (.)u;/\1in/;' -- If you cc me or remove the list(s) completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html |