Newsgroups: fj.unix
Path: galaxy.trc.rwcp.or.jp!news.trc!nf2.iij.ad.jp!nr0.iij.ad.jp!news.iij.ad.jp!rim.or.jp!tamaru-news!kuee-news!odins-suita!news.cs.ritsumei.ac.jp!newshub.bkc.ritsumei.ac.jp!cancer.nca5.ad.jp!nfeed.gw.nagoya-u.ac.jp!vega2!ccsatoru
From: ccsatoru@vega.aichi-u.ac.jp (Satoru Takabayashi)
Subject: Re: [Q] usgae "tr" or "sed"
Sender: news@vega2.aichi-u.ac.jp (News Master)
Message-ID: <EMF671.LwB@vega2.aichi-u.ac.jp>
Date: Wed, 7 Jan 1998 15:11:25 GMT
Lines: 28
References: <68v209$ntr$1@tp01.maw.melco.co.jp>
Nntp-Posting-Host: saturn.aichi-u.ac.jp
Organization: Aichi University Computer Center, Aichi University, Aichi, Japan.
X-Newsreader: mnews [version 1.20] 1996-12/08(Sun)
Xref: galaxy.trc.rwcp.or.jp fj.unix:4017
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.unix&nb=4017&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

$B9bNS(B@$B0&CNBg3X$H?=$7$^$9(B

sato@maw.melco.co.jp wrote:

>$B#8?J?t$G$?$H$($P0J2<$NJ8;z$,$"$k$H$7$^$9!#(B
>
>225 110 211 324 216 161 040 040
>
>$B:G8e$N!!(B040 040 $B$r2~9T%3!<%I(B(\n)$B$K$7$?$$$N$G$9!#(B

Perl $B$J$i$P(B

perl -pe 's/\040\040$/\012/' input > output

$B$G$G$-$k$H;W$$$^$9!#(B

# perl -pe 's/  $/\n/' input > output 
# $B$G$bF1$8$G$9$,(B


'$' ($B9TKv$H$$$&>r7o(B) $B$,ITMW$J$i$P(B

perl -pe 's/\040\040/\012/g' input > output

$B$G$7$g$&$+!#(B

--
$B9bNS(B $BE/(B Satoru Takabayashi
