ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Igor Homyakov <homyakov@ramax.spb.ru>
To: devel@altlinux.ru
Subject: Re: [devel] Как сделать pipe с буфером?
Date: Mon, 18 Mar 2002 19:42:53 +0300
Message-ID: <20020318164253.GA29475@ramax.spb.ru> (raw)
In-Reply-To: <20020318135326.GC32057@vcserver.mivlgu.ru>

On Mon, Mar 18, 2002 at 04:53:26PM +0300, Sergey Vlasov wrote:
> On Mon, Mar 18, 2002 at 17:50:41 +0300, Igor Homyakov wrote:
> > On Mon, Mar 18, 2002 at 04:39:15PM +0300, Grigory Batalov wrote:
> > > Stanislav Ievlev <inger@alt-linux.org> wrote:
> > > 
> > > >> Мне нужно удалить несколько строк из файла, предварительно мною
> > > >>туда записанных.
> > > >>
> > > >Лучше всего делать это через perl
> > > >perl -pi -e 's@to_remove@@' somefile.txt
> > > 
> > >    Вот те раз! А я специально вычищал perl-зависимости
> > >  из dosemu, заменяя perl на sed и grep.
> > 
> > к тому же в perl-овой документации подобные конструкции использовать
> > настоятельно НЕ рекомендуют.
> 
> В каком месте?

В том смысле, что одно неосторожное движение и содержимое файла будет
безвозвратно потеряно 'man perlrun'. В данном случае это не слишком важно,
но лучше не иметь привычки писать такой код.

-- 
Igor Homyakov
<homyakov(at)ramax.spb.ru>



  reply	other threads:[~2002-03-18 16:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-18 13:39 Grigory Batalov
2002-03-18 14:50 ` Igor Homyakov
2002-03-18 13:53   ` Sergey Vlasov
2002-03-18 16:42     ` Igor Homyakov [this message]
2002-03-18 22:43       ` [devel] " Mikhail Zabaluev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020318164253.GA29475@ramax.spb.ru \
    --to=homyakov@ramax.spb.ru \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git