From: Mikhail Zabaluev <mhz@alt-linux.org>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] replace
Date: Fri Jun 29 12:25:11 2001
Message-ID: <20010629124032.C4274@localhost.localdomain> (raw)
In-Reply-To: <20010629123129.09e42a76.ujo@zuzusoft.com>; from ujo@zuzusoft.com on Fri, Jun 29, 2001 at 12:31:29PM +0400
Hello Artem,
On Fri, Jun 29, 2001 at 12:31:29PM +0400, Artem K. Jouravsky wrote:
>
> Здравствуйте, "Leonid L. Khachaturov" <lenya@chemsell.yaroslavl.ru>!
> От Thu, 28 Jun 2001 14:31:09 +0400 вы писали на тему Re[2]: [mdk-re] replace:
>
> LK>
> LK> >> Добрый день!
> LK> >> Раньше, в MDK 7.0RE, была прога - replace.
> LK> >> К какому пакету она принадлежит? А то тогда не посмотрел,
> LK> а
> LK> >> теперь не
> LK> >> нашёл.
> LK> AN> Она была в пакете replace. Но глюкава, потому выкинули.
> LK> AN> Используйте perl -pi -e 's/XXX/YYY/g' filename
> LK>
> LK> А как сделать замену рекурсивно, пробежаться по подкаталогам?
> LK> Нужно менять ссылки в html-файлах.
>
> find . -name *.html -exec perl -pi -e 's/XXX/YYY/g' '{}' ';'
>
> так не подойдет?
perl - не та программа, которую стоит запускать отдельно для каждого
файла :) Лучше:
perl -pi -e 's/XXX/YYY/g' $(find . -name '*.html' -print)
--
Stay tuned,
MhZ JID: mookid@jabber.org
___________
Drive defensively. Buy a tank.
next prev parent reply other threads:[~2001-06-29 12:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-25 18:32 Aleksandr Blohin
2001-06-25 20:25 ` Aleksey Novodvorsky
2001-06-25 21:54 ` Aleksandr Blohin
2001-06-26 0:45 ` Mikhail Zabaluev
2001-06-26 13:47 ` Aleksandr Blohin
2001-06-29 12:12 ` Re[2]: " Leonid L. Khachaturov
2001-06-29 12:17 ` Artem K. Jouravsky
2001-06-29 12:25 ` Mikhail Zabaluev [this message]
2001-06-29 13:09 ` Artem K. Jouravsky
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=20010629124032.C4274@localhost.localdomain \
--to=mhz@alt-linux.org \
--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