skip(a)pobox.com wrote:
skip> Feel free to suggest other alternatives for me to try.
Thinking about it a bit, shouldn't this work and be portable?
% echo $with_error_checking | /usr/bin/sed -e 's/^[a-z]*//' -e
's/^,//'
It gives the correct result in the current situation. If I am interpreting
the original r.e. correctly, the aim is to remove the first word from the
beginning of the string plus any comma that follows it.
Actually, what also works in all seds is:
/usr/bin/sed -e 's/^[a-z]*,\{0,1\}//'
Solaris /usr/bin/sed only supports so-called simple regexps, they
are explained in regexp(5). There is documented that the \{m,n\}
construct only works for preceding _single-character_ REs, but not
for parenthized REs.
Joachim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod Email: jschrod(a)acm.org
Roedermark, Germany
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta