ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Slava Garelin <garelin@ukr.net>
To: community@altlinux.ru
Subject: Re: [Comm] awk
Date: Fri, 4 Jul 2003 12:11:10 +0300
Message-ID: <20030704121110.1f7590ed.garelin@ukr.net> (raw)
In-Reply-To: <20030704143929.213c61df.bazhen@mail.kz>

On Fri, 4 Jul 2003 14:39:29 +0700
"Yevgeniy Bazhenov" <bazhen@mail.kz> wrote:

> Здравствуйте!
> 
> Просветите кто-нибудь, как пользоваться
> переменной OFS в awk?
> Я наивно полагал, что конструкция
>  
> awk '
>      BEGIN  {
>      OFS=","
>      FS="\t"
>      }
>      {print}
> ' $INPUT_FILE > $OUTPUT_FILE
> 
> должна привести к замене разделителей полей 
> с табуляции во входном файле на запятую в выходном:/
> Как это сделать?

awk '
     BEGIN  {
     OFS=",";
     FS="\t";
     }
     {if(NF)$1=$1;print;}
'  $INPUT_FILE > $OUTPUT_FILE

-- 
Slava Garelin
>From raorn@immo.ru  Fri Jul  4 13:36:22 2003
Return-Path: <raorn@immo.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 627B74924A
	for <community@lrn.ru>; Fri,  4 Jul 2003 13:36:22 +0400 (MSD)
Received: from proxy.inform-mobil.ru (unknown [195.170.60.18])
	by master.altlinux.ru (Postfix) with ESMTP id 4BCC0E31D0
	for <community@altlinux.ru>; Fri,  4 Jul 2003 13:36:22 +0400 (MSD)
Received: from drweb by proxy.inform-mobil.ru with drweb-scanned (Exim 3.36
	#1)	id 19YMzN-000ESZ-00
	for community@altlinux.ru; Fri, 04 Jul 2003 13:36:21 +0400
Received: from inferno.immo ([192.168.0.64])
	by proxy.inform-mobil.ru with esmtp (Exim 3.36 #1)
	id 19YMzL-000ES5-00
	for community@altlinux.ru; Fri, 04 Jul 2003 13:36:19 +0400
Received: from inferno.immo (localhost.localdomain [127.0.0.1])
	by inferno.immo (8.12.9/8.12.5) with ESMTP id h649aJ3p024601
	for <community@altlinux.ru>; Fri, 4 Jul 2003 13:36:19 +0400
Received: (from raorn@localhost)
	by inferno.immo (8.12.9/8.12.9/Submit) id h649aJqo024600
	for community@altlinux.ru; Fri, 4 Jul 2003 13:36:19 +0400
Date: Fri, 4 Jul 2003 13:36:18 +0400
From: "Alexey I. Froloff" <raorn@immo.ru>
To: community@altlinux.ru
Subject: Re: [Comm] message.att - =?koi8-r?B?x8zA?=kmail1.5
Message-ID: <20030704093618.GR2084@inferno.immo>
Mail-Followup-To: community@altlinux.ru
References: <200307041319.25580.combr@vesna.ru>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="NNVaupgJYQhsR2bD"
Content-Disposition: inline
In-Reply-To: <200307041319.25580.combr@vesna.ru>
User-Agent: Mutt/1.4.1i
X-Envelope-To: community@altlinux.ru
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 09:36:22 -0000


--NNVaupgJYQhsR2bD
Content-Type: text/plain; charset=koi8-r
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

* Mike Lykov <combr@vesna.ru> [030704 12:35]:
> Отсюда вывод - Kmail не поддерживает стандарт кодирования
> русских имен файлов.  Почему? Как исправить?
Какой стандарт?

RFC2231, секция 2:

    (2)   MIME headers, like the RFC 822 headers they often
          appear in, are limited to 7bit US-ASCII, and the
          encoded-word mechanisms of RFC 2047 are not available
          to parameter values.  This makes it impossible to have
          parameter values in character sets other than US-ASCII
          without specifying some sort of private per-parameter
          encoding.

В звголовках аутглюка и мыша используется кодирование данных по
RFC2047.

Так что это еще вопрос, кто именно не поддерживает стандарты.

-- 
Regards, Sir Raorn.
-------------------
> А TCB (Trusted Computing Base) -- не из SCO родом?
Только не путайте этот TCB с нашим TCB - у них общее только в
аббревиатуре.
		-- ldv in community@

--NNVaupgJYQhsR2bD
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/BUqSVqT7+fkT8woRAlmsAJ96X6yzb/qS1lpOtTxcI3PQJadnLgCgtOPL
VyjwkJTFcMi5NVQLBCv/vwQ=
=R06N
-----END PGP SIGNATURE-----

--NNVaupgJYQhsR2bD--


  parent reply	other threads:[~2003-07-04  9:11 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
2003-07-04  9:12     ` Dmytro O. Redchuk
2003-07-04  9:11 ` Slava Garelin [this message]
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=20030704121110.1f7590ed.garelin@ukr.net \
    --to=garelin@ukr.net \
    --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