From: Yura Kalinichenko <yuk@iceb.vinnitsa.com>
To: AltLinux Community Maillist <community@altlinux.ru>
Subject: Re: [Comm] sed OR subst как?
Date: Tue, 31 May 2005 10:07:49 +0300
Message-ID: <1117523269.3023.6.camel@yuk.home.int> (raw)
In-Reply-To: <20050531092020.1e235fff@localhost.localdomain>
В Вто, 31/05/2005 в 09:20 +0300, Dolgov OV пишет:
> Здравствуйте.
>
> Опять вернулся к неразрешенному для меня когда-то вопросу :-(
>
> Есть файл, на'grep'аный фрагментами html кода из сохраненных страниц.
> Каждая строка содержит от одной и более ссылок. Надо каждую ссылку
> разместить в отдельной строке, чтобы потом
> perl -nwe 'print "$1\n" if /...
> выгрыз интересующий меня текст.
>
> Пробовал subst s,PATERN,\nTEXT, не то. Тупо подставляет "nTEXT". Также
> себя ведет и sed.
>
Не совсем понял смысл задачи, но если надо в подстановку вставить
перевод строки - это делается например так:
sed -e 's,PATTERN,\
TEXT,g' input.file
> Может в vim есть такая возможность? Или еще в каком редакторе?
Если речь об экранном редакторе - то по крайней мере joe это умеет.
--
Yura Kalinichenko
next prev parent reply other threads:[~2005-05-31 7:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-31 6:20 Dolgov OV
2005-05-31 7:07 ` Yura Kalinichenko [this message]
2005-05-31 7:40 ` [Comm] [SUMMARY] " Dolgov OV
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=1117523269.3023.6.camel@yuk.home.int \
--to=yuk@iceb.vinnitsa.com \
--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