FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

LinkBack Thread Tools
Old 03-23-2009, 07:22 AM
Ulrich Mueller
Default newins "-" for standard input?

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)

or even:

newins - baz <<<$'# a short
# file'


Thread Tools

All times are GMT. The time now is 07:01 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org