02-24-05 10:58 PM
Hello,
I would like to execute another command from within the sed command,
similar to the following (this is just an example of what I want to
do):
echo $LIST | head -30 | sed "s/\(.*\)~\(.*\)~\(.*\)/`ls \2`/"
This doesn't work because the backreference is not expanded in the `ls
\2` section. Is there any way to do this?
Thanks!
[ Post a follow-up to this message ]
|