ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Korshunov Ilya <kosha@kp.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] Re: Удаление определённого текста из нескольких файлов
Date: Wed Dec 19 08:36:01 2001
Message-ID: <20011219084131.5fd88ec4.kosha@kp.ru> (raw)
In-Reply-To: <20011218205729.GB2069@localhost.localdomain>

On Tue, 18 Dec 2001 23:57:29 +0300
Mikhail Zabaluev <mhz@alt-linux.org> wrote:

> Hello Korshunov,
> 
> On Tue, Dec 18, 2001 at 04:27:00PM +0300, Korshunov Ilya wrote:
> >
> > 
> > Есть несколько файлов с одним и тем же текстовым блоком. Мне надо удалить этот блок из всех файлов, но так как файлов прилично 
> > и оперцию надо проводить периодически руками это делать неохота. Вопрос - есть ли в Linux стандаратное для этого средство ? Я просто сделал это на php с помощью ereg_replace но это довольно тормознуто и неудобно. Может есть у кого готовые решения на perl или python ?
> 
> Блок из нескольких строк?
> 
> Если да, то вот короткий способ на perl (замените BLOCK BEGIN/END на
> подходящие регулярные выражения):
> 
> perl -ni -e '/BLOCK BEGIN/../BLOCK END/ || print' file ...
> 
Спасибо помогло.



  reply	other threads:[~2001-12-19  8:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-18 16:21 [mdk-re] " Korshunov Ilya
2001-12-18 16:51 ` Artem K. Jouravsky
2001-12-18 17:47 ` Michael Shigorin
2001-12-18 18:22   ` Korshunov Ilya
2001-12-18 21:37     ` Victor Sovetov
2001-12-18 23:45 ` [mdk-re] " Mikhail Zabaluev
2001-12-19  8:36   ` Korshunov Ilya [this message]
2001-12-19 20:29 ` [mdk-re] " Alexey Korotkov
2001-12-19 20:33   ` Korshunov Ilya

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=20011219084131.5fd88ec4.kosha@kp.ru \
    --to=kosha@kp.ru \
    --cc=mandrake-russian@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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