In message <[EMAIL PROTECTED]> on Wed, 05 Jun 2002 09:43:45 -0400, Rich
Salz <[EMAIL PROTECTED]> said:
rsalz> Richard Levitte via RT wrote:
rsalz> > Can I assume that sed exists and works properly? dirname can be
rsalz> > coded like this:
rsalz>
rsalz> > echo $$i | sed -e 's|[^/]*$||' -e 's|/$||'
rsalz>
rsalz> "dirname foo" returns "." which the above doesn't catch.
Ah, I missed that...
rsalz> */* ) echo "$I" | sed -e 's@\(.*\)/.*@\1@' ;;
Why such a complicated sed? 's@/[^/]*$@@' is perfecty sufficient, and
a little bit more efficient :-).
rsalz> on the other hand, since you're already requirring perl ...
That was my next option.
--
Richard Levitte \ Spannv�gen 38, II \ [EMAIL PROTECTED]
Redakteur@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47
\ SWEDEN \ or +46-708-26 53 44
Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/
Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]