List Archive: gentoo-dev
Am Montag, den 23.03.2009, 09:22 +0100 schrieb Ulrich Mueller:
> Now that "dosed" is going to be banned, what would people think of
> "newins" (and the other "new*" commands) accepting "-" as the first
> argument? I don't know how many usage cases there are, but the
> following are obvious:
>
> sed 's/quux/quuux/' foo | newins - foo
>
> It would allow for here documents:
>
> newins - bar <<-EOF
> # configuration file (for example)
> EOF
>
> or even:
>
> newins - baz <<<$'# a short\n# file'
>
I like it :-)
|
| Attachment: |
|
signature.asc (Dies ist ein digital signierter Nachrichtenteil)
|
|