On 13.01.2012 16:00, Neil Williams wrote:
The point about sed is that sed can substitute whatever you like into
whatever you like - printenv with grep and sed gets the value, then
another grep for the lines that matter and pass those lines to sed. It
really isn't hard.
ok, please can you give me an example sed-command which replaces ${.*}
with the according environment-variables? I couldn't find this yet and
nobody could point me to it yet. The only way to do this I seeing atm is
to iterate through $(printenv) and replace all listed
environment-variables in the stream using sed. But this way seams very
"bloat" to me.
And when i write such a tool for myself, why does it matter if i do this
with python, perl, ruby, php, c or something else?
Regards,
Michael
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org