ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Yevgeniy Bazhenov" <bazhen@mail.kz>
To: community@altlinux.ru
Subject: Re: [Comm] awk
Date: Fri, 4 Jul 2003 15:52:33 +0700
Message-ID: <20030704155233.0cd94d48.bazhen@mail.kz> (raw)
In-Reply-To: <20030704075808.GA2469@kiev-online.net>

On Fri, 4 Jul 2003 10:58:08 +0300
"Dmytro O. Redchuk" <dor@kiev-online.net> wrote:

> On Fri, Jul 04, 2003 at 02:39:29PM +0700, Yevgeniy Bazhenov wrote:
> > Здравствуйте!
> > 
> > Просветите кто-нибудь, как пользоваться
> > переменной OFS в awk?
> > Я наивно полагал, что конструкция
> >  
> > awk '
> >      BEGIN  {
> >      OFS=","
> >      FS="\t"
> >      }
> >      {print}
> Нужно выводить print $1, $2, $3 ...
> Наверное.

А зачем тогда OFS?

Да и число полей переменное, придется 
городить что-то вроде

BEGIN {
     FS="\t"
}
{
     for (i=1;i<NF;i++){printf("\"%s\",",$i)}
     printf("\"%s\"\r",$NF)
}

Подразумевается преобразование из текстового
файла с разделителями полей \t в формат .csv
>From bazhen@mail.kz  Fri Jul  4 12:56:59 2003
Return-Path: <bazhen@mail.kz>
Delivered-To: community@lrn.ru
Received: from master.altlinux.ru (master.altlinux.ru [62.118.250.235])
	by lrn.ru (Postfix) with ESMTP id 9D7AF49C31
	for <community@lrn.ru>; Fri,  4 Jul 2003 12:56:59 +0400 (MSD)
Received: from mail.kz (mail.kz [212.19.128.22])
	by master.altlinux.ru (Postfix) with ESMTP id D8329E31CF
	for <community@altlinux.ru>; Fri,  4 Jul 2003 12:56:58 +0400 (MSD)
Received: from [212.154.242.37] (account bazhen HELO osi3)
	by mail.kz (CommuniGate Pro SMTP 3.5.8)
	with ESMTP id 21610669 for community@altlinux.ru;
	Fri, 04 Jul 2003 15:53:13 +0600
Date: Fri, 4 Jul 2003 15:53:19 +0700
From: "Yevgeniy Bazhenov" <bazhen@mail.kz>
To: community@altlinux.ru
Subject: Re: Re[2]: [Comm] txt2xls
Message-Id: <20030704155319.6ed2fae0.bazhen@mail.kz>
In-Reply-To: <1621552262.20030704100223@mail.ru>
References: <20030704104725.0baa0803.bazhen@mail.kz>
	<20030704124455.40dc74a0.bazhen@mail.kz>
	<200307040950.41933.webmaster@unicon-ms.ru>
	<1621552262.20030704100223@mail.ru>
X-Mailer: Sylpheed version 0.9.2 (GTK+ 1.2.10; i586-alt-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=KOI8-R
Content-Transfer-Encoding: 8bit
X-BeenThere: community@altlinux.ru
X-Mailman-Version: 2.1.1
Precedence: list
Reply-To: community@altlinux.ru
List-Id: <community.altlinux.ru>
List-Unsubscribe: <http://www.altlinux.ru/mailman/listinfo/community>,
	<mailto:community-request@altlinux.ru?subject=unsubscribe>
List-Archive: </pipermail/community>
List-Post: <mailto:community@altlinux.ru>
List-Help: <mailto:community-request@altlinux.ru?subject=help>
List-Subscribe: <http://www.altlinux.ru/mailman/listinfo/community>,
	<mailto:community-request@altlinux.ru?subject=subscribe>
X-List-Received-Date: Fri, 04 Jul 2003 08:57:00 -0000

On Fri, 4 Jul 2003 10:02:23 +0400
Dmitry Bulgakov <manmitya@mail.ru> wrote:

> Привет, Leonid!
> 
> >> Вдогонку. Не подскажет ли кто-нибудь,
> >> как должны выглядеть файлы с расширением .csv?
> LBS> Как должны выглядеть файлы, называющиеся "Comma Separated Values"?
> Поля в кавычках, разделенные запятыми, например:
> ------------------------
> "Field 1","Field 2","Field 3"
> "data1","dataaaaaa2","dataaa4"
> "data12","dat2","d"
> -----------------------

Спасибо.
>From admin@mics.ru  Fri Jul  4 12:57:08 2003
Return-Path: <admin@mics.ru>
Delivered-To: community@lrn.ru
Received: from master.altlinux.ru (master.altlinux.ru [62.118.250.235])
	by lrn.ru (Postfix) with ESMTP id 3292C49C36
	for <community@lrn.ru>; Fri,  4 Jul 2003 12:57:06 +0400 (MSD)
Received: from frontend1.aha.ru (fish.zenon.net [213.189.198.214])
	by master.altlinux.ru (Postfix) with ESMTP id 97D79E31CF
	for <community@altlinux.ru>; Fri,  4 Jul 2003 12:57:05 +0400 (MSD)
Received: from [213.221.43.203] (HELO admin)
	by frontend1.aha.ru (CommuniGate Pro SMTP 4.0.6)
	with SMTP id 198296277 for community@altlinux.ru;
	Fri, 04 Jul 2003 12:56:54 +0400
Message-ID: <005c01c3420a$52facc20$0200a8c0@admin>
From: "Dorogov Nikolay" <admin@mics.ru>
To: <community@altlinux.ru>
References:
	<001c01c34207$496fe4e0$0200a8c0@admin><200307041237.52272.webmaster@unicon-ms.ru><003401c34208$983cf850$0200a8c0@admin>
	<200307041251.21363.webmaster@unicon-ms.ru>
Subject: =?koi8-r?B?UmU6IFtDb21tXSAg8M/J08sgxsHKzMEgINcgUlBNINDSySDQz83P3ckgQVBU?=
Date: Fri, 4 Jul 2003 12:57:25 +0400
MIME-Version: 1.0
Content-Type: text/plain;
	charset="koi8-r"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-BeenThere: community@altlinux.ru
X-Mailman-Version: 2.1.1
Precedence: list
Reply-To: community@altlinux.ru
List-Id: <community.altlinux.ru>
List-Unsubscribe: <http://www.altlinux.ru/mailman/listinfo/community>,
	<mailto:community-request@altlinux.ru?subject=unsubscribe>
List-Archive: </pipermail/community>
List-Post: <mailto:community@altlinux.ru>
List-Help: <mailto:community-request@altlinux.ru?subject=help>
List-Subscribe: <http://www.altlinux.ru/mailman/listinfo/community>,
	<mailto:community-request@altlinux.ru?subject=subscribe>
X-List-Received-Date: Fri, 04 Jul 2003 08:57:09 -0000


----- Original Message -----
From: "Leonid B. Sysoletin" <webmaster@unicon-ms.ru>
To: <community@altlinux.ru>
Sent: Friday, July 04, 2003 12:51 PM
Subject: Re: [Comm] Поиск файла в RPM при помощи APT


> В сообщении от 4 Июль 2003 12:45 Dorogov Nikolay написал(a):
> > Я вроде в тексте и посылаю.
>
> Уже в тексте :)
>
> > А апт не умеет? получается или это я опять чего не нашел в доках?
>
> Не, я в том смысле, что описанный вами путь - это, ИМХО, не "мудрение".

Но ведь rpmdrake мог искать и в неустановленных у казываеш где искать и
вперед,
Непонятно почему его из Mastera 2.2 убрали.

>
> --
> Л. Сысолетин,
> webmaster@unicon-ms.ru, webmaster@bdo.ru
> [Team Ёжики-рулез!] [Team Котёнки на солярке] [Team Берегите букву "ё"!]
> [Team Я люблю свою фортунку] [Team Фортунка в переписку не вступает]
>
> I will follow the good side right to the fire, but not into it if I can
> help it.
> -- Michel Eyquem de Montaigne
>
> _______________________________________________
> Community mailing list
> Community@altlinux.ru
> http://www.altlinux.ru/mailman/listinfo/community


  reply	other threads:[~2003-07-04  8:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-04  7:39 Yevgeniy Bazhenov
2003-07-04  7:58 ` Dmytro O. Redchuk
2003-07-04  8:52   ` Yevgeniy Bazhenov [this message]
2003-07-04  9:12     ` Dmytro O. Redchuk
2003-07-04  9:11 ` Slava Garelin
2003-07-04  9:17 ` yuk

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=20030704155233.0cd94d48.bazhen@mail.kz \
    --to=bazhen@mail.kz \
    --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