From: Genix <genix@list.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Поиск и замена включая подкаталоги
Date: Thu, 24 Feb 2005 16:01:14 +0300
Message-ID: <421DD01A.6010706@list.ru> (raw)
In-Reply-To: <20050224144729.7dd2c591@super-comp.home.net>
Drool wrote:
> Просветите чайника - как найти и заменить в файлах, если можно - с
> подкаталогами, выражение "бла-бла" на "бум-бум" или удалить?
заменить в одом файле можно с помощью subst:
subst 's/бла-бла/бум-бум/g' filename.txt
в группе файлов возможно поможет find, например:
find -type f -name "*.txt" -exec subst 's/бла-бла/бум-бум/g' {} \;
возможно есть более простой способ
--
У каждого в башке свои тараканы...
next prev parent reply other threads:[~2005-02-24 13:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-24 12:47 Drool
2005-02-24 13:01 ` Genix [this message]
2005-02-24 14:24 ` Drool
2005-02-24 15:24 ` Andrey Rahmatullin
2005-02-24 13:30 ` [Comm] " Oleg N. Kayunov
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=421DD01A.6010706@list.ru \
--to=genix@list.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