From: Alexey Tourbin <at@turbinal.org>
To: community@altlinux.ru
Subject: [Comm] Re: regexp по дереву исходников.
Date: Wed, 25 Dec 2002 15:25:57 +0300
Message-ID: <20021225122557.GA7791@ungrund> (raw)
In-Reply-To: <20021225122450.GA6864@ungrund>
[-- Attachment #1: Type: text/plain, Size: 506 bytes --]
On Wed, Dec 25, 2002 at 03:24:50PM +0300, Alexey Tourbin wrote:
> On Wed, Dec 25, 2002 at 05:15:10PM +0500, vic ismakaev wrote:
> > Необходимо в каталоге с исходниками в куче файлов заменить одну строку другой.
> > Как это сделать по аналогии
> > perl -pi -e "s#str1#str2#" somefile
> > но рекурсивно по всему дереву каталогов?
>
> find -type f -name '*.[ch]' -print 0 | xargs -r0 -- perl -pi -e "s#str1#str2#g"
^^^^^^^^
-print0
--
WBR, Alexey Tourbin
BIOZAK Ltd., Russia
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2002-12-25 12:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-25 12:15 [Comm] " vic ismakaev
2002-12-25 12:22 ` Sergey Degtyaryov
2002-12-25 12:24 ` Sergey Vlasov
2002-12-25 12:24 ` [Comm] " Alexey Tourbin
2002-12-25 12:25 ` Alexey Tourbin [this message]
2002-12-25 12:25 ` [Comm] " Myroslav M. Rozum
2002-12-25 12:27 ` Myroslav M. Rozum
2002-12-25 12:39 ` vic ismakaev
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=20021225122557.GA7791@ungrund \
--to=at@turbinal.org \
--cc=community@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