ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Artem K. Jouravsky" <ujo@ifirst.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] Удаление определённого текста из нескольких файлов
Date: Tue Dec 18 16:51:13 2001
Message-ID: <20011218135523.GA2820@ujo.int.ifirst.ru> (raw)
In-Reply-To: <20011218162700.05c8828f.kosha@kp.ru>

On Tue, Dec 18, 2001 at 04:27:00PM +0300, Korshunov Ilya wrote:
> 
> Есть несколько файлов с одним и тем же текстовым блоком. Мне надо удалить этот блок из всех файлов, но так как файлов прилично 
> и оперцию надо проводить периодически руками это делать неохота. Вопрос - есть ли в Linux стандаратное для этого средство ? Я просто сделал это на php с помощью ereg_replace но это довольно тормознуто и неудобно. Может есть у кого готовые решения на perl или python ?
find . -type f |xargs grep -l <match>|xargs perl -e -pi 's/<match>//g;' 
что-то такое, криво, жутко, конец рабочего дня...

Best wishes,
+----------------------+--------------------------+
|  ."-.                |  Work: +7-(095)-229-4278 |
| /X  | _o.----.    _  |  ICQ:  103399444         |
|/\_  \/ /  __  \_// ) |  Artem K. Jouravsky      |
|\__)-/_/\_____)____/  |  http://www.ifirst.ru/   |
+----------------------+--------------------------+		      



  reply	other threads:[~2001-12-18 16:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-18 16:21 Korshunov Ilya
2001-12-18 16:51 ` Artem K. Jouravsky [this message]
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
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=20011218135523.GA2820@ujo.int.ifirst.ru \
    --to=ujo@ifirst.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