Richard Levitte via RT wrote: > Can I assume that sed exists and works properly? dirname can be > coded like this:
> echo $$i | sed -e 's|[^/]*$||' -e 's|/$||' "dirname foo" returns "." which the above doesn't catch. I can only think of the following short shell script #! /bin/sh for I do case "$I" in */* ) echo "$I" | sed -e 's@\(.*\)/.*@\1@' ;; *) echo "." esac done sed has had \(\) since v7 unix days. ... on the other hand, since you're already requirring perl ... ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]