hi,

I'm currently trying to set up a `ksh' script as a drop in replacement for `awk' in processing some text. I've stumbled over the following.
consider this  string:

a="water: h~2~^o^ and ammonia: NH~3~"

where I want to replace the `~' enclosed text parts by something else, maintaining the enclosed text. I've tried

echo "${a/~(-g:~(*)~)/#\1#}"

to replace the first hit in the line by `h#2#'

but this does not work (neither does the same with backquoted `~').

what am I missing? something to do with tilde expansion?

thanks
joerg
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to