Mike Frysinger writes: > neither of those are terribly compelling and can be written in sed. > you want to do a match & replace in that just as easily. roughly: > sed -i \ > -e '/{[[:space:]]*deps[[:space:]]*,\/,\/}/{s:.*:{deps, []}:}' \ > foo Oh, I know how to use sed&replace on a single line. What if deps tuple spans over multiple line which is usually the case? I have an idea how to do it in sed but awk is much simpler to approach this. > because no one else is using it or cares about it. we've gotten by > for more than 10 years at this point w/out someone asking for this. Or met the same argument and given up... ;-) > if you really want it in rebar, then just DEPEND on gawk and use the > inplace flag in your code. then there's no need for eawk anywhere. Already did that. At the beggining I wanted to use sponge from moreutils but I assumed it's not desired to depend on some tool not in @system or specific gawk implementation and version (which is not even stabilized yet) just for eclass/ebuild internals. But apparently it's fine, so I did that, as I've said in some other response. -- Amadeusz Żołnowski