From: "Aleksander N. Gorohovski" <angel@feht.dgtu.donetsk.ua>
To: community@altlinux.ru
Subject: Re: [Comm] sed -?
Date: Wed, 06 Oct 2004 18:19:58 +0400
Message-ID: <opsfgcrksdhz2pp6@oc.peooc.net> (raw)
In-Reply-To: <20041005172736.39cdbc05.dov@media-link.info>
On Tue, 5 Oct 2004 17:27:36 +0300, Dolgov OV <dov@media-link.info> wrote:
> On Tue, 05 Oct 2004 17:07:04 +0400
> "Aleksander N. Gorohovski" <angel@feht.dgtu.donetsk.ua> wrote:
>> Напиши програмку на perl, типа
>> ---------------------------------
>> #!/usr/bin/perl
>>
>> open (FILE,"list1.txt");
>> @a=<FILE>;
>> close (FILE);
>> my $i;
>> for (@a) {
>> /<\/TD><\/tr>/\n/g;
>> $a[$i++]=$_;
>> }
>> open (FILE,">list2.txt");
>> print FILE @a;
>> close (FILE);
>> -------------------------
>> Если ничего не пропустил, должно работать
>
> Чегото он ругается на команду перевода строки в программе (если я
> правильно понял):
> Backslash found where operator expected at ./myperl line 8, near
> "/<\/TD><\/tr>/\" (Missing operator before \?)
> syntax error at ./myperl line 8, near "/<\/TD><\/tr>/\"
> Execution of ./myperl aborted due to compilation errors.
Sorry, должно быть
s/<\/TD><\/tr>/\n/g;
next prev parent reply other threads:[~2004-10-06 14:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-05 13:43 Dolgov OV
2004-10-05 13:07 ` Aleksander N. Gorohovski
2004-10-05 14:27 ` Dolgov OV
2004-10-05 15:18 ` Michael Holzman
2004-10-06 8:14 ` Denis A. Yurashkou
2004-10-06 14:19 ` Aleksander N. Gorohovski [this message]
2004-10-05 15:19 ` Dolgov OV
2004-10-05 18:39 ` Yura Kalinichenko
2004-10-06 6:58 ` Dolgov OV
2004-10-06 7:36 ` Yura Kalinichenko
2004-10-06 8:15 ` 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=opsfgcrksdhz2pp6@oc.peooc.net \
--to=angel@feht.dgtu.donetsk.ua \
--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