ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Denis A. Yurashkou" <dayfuaim@msx.ru>
To: community@altlinux.ru
Subject: Re: [Comm] sed -?
Date: Wed, 06 Oct 2004 12:14:49 +0400
Message-ID: <4163A979.1080606@msx.ru> (raw)
In-Reply-To: <20041005172736.39cdbc05.dov@media-link.info>

'Dolgov OV' wrote on 05.10.2004 18:27:
> 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;
Насколько я понимаю Perl, тут должен быть s/// ;)
Тогда и ругаться не будет.
>>$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.
> 
> Может я просто чего-то пропустил в man (sed|ed|awk) Просто уж очень
> тяжко вникать в доку на не совсем понятном языке :-\
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Community mailing list
> Community@altlinux.ru
> https://lists.altlinux.ru/mailman/listinfo/community


-- 
----------------
Best regards, Denis A. Yurashkou [DAY]
(dayfuaim@msx.ru)

Origin: Stop the World -- I Wanna Get Off!..


  parent reply	other threads:[~2004-10-06  8:14 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 [this message]
2004-10-06 14:19     ` Aleksander N. Gorohovski
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=4163A979.1080606@msx.ru \
    --to=dayfuaim@msx.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