Hi,
on all systems (even those that claim to be POSIX compliant), the
following code:
echo usr/src/bla | sed -e 's,[^/]*,..,g'
will print ../../..
If I use /usr/xpg4/bin/sed on Solaris instead, I get:
..../..../..
any ideas?
BTW: as: echo usr/src/bla | /usr/xpg4/bin/sed -e 's,[^/]*,..,'
prints ../src/bla I asume that /usr/xpg4/bin/sed forgets to increment
the "dot" location in case of "g"lobal commands.
Jörg
--
EMail:[email protected] (home) Jörg Schilling D-13353 Berlin
[email protected] (uni)
[email protected] (work) Blog:
http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code