ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: community@altlinux.ru
Subject: Re: [Comm] regexp по дереву исходников.
Date: Wed, 25 Dec 2002 15:24:31 +0300
Message-ID: <20021225152431.21317373.vsu@altlinux.ru> (raw)
In-Reply-To: <200212251715.10266.viclists@mail.esoo.ru>

On Wed, 25 Dec 2002 17:15:10 +0500
vic ismakaev <viclists@mail.esoo.ru> wrote:

> Необходимо в каталоге с исходниками в куче файлов заменить одну строку другой.
> Как это сделать по аналогии 
> perl -pi -e "s#str1#str2#" somefile
> но рекурсивно по всему дереву каталогов?

find /some/dir -type f -print0 | xargs -r0 perl -pi -e 's#str1#str2#' --


  parent reply	other threads:[~2002-12-25 12:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-25 12:15 vic ismakaev
2002-12-25 12:22 ` Sergey Degtyaryov
2002-12-25 12:24 ` Sergey Vlasov [this message]
2002-12-25 12:24 ` [Comm] " Alexey Tourbin
2002-12-25 12:25   ` Alexey Tourbin
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=20021225152431.21317373.vsu@altlinux.ru \
    --to=vsu@altlinux.ru \
    --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