From mboxrd@z Thu Jan 1 00:00:00 1970 From: urgrue Subject: Re: sed problem Date: Fri, 5 Mar 2004 10:55:23 +0200 Sender: linux-admin-owner@vger.kernel.org Message-ID: <20040305085523.GA12879@fede2.tumsan.fi> References: <35a8138f03.38f0335a81@euskalnet.net> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <35a8138f03.38f0335a81@euskalnet.net>; from csoler@euskalnet.net on Fri, Mar 05, 2004 at 09:42:46 +0200 List-Id: Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: admin I think "tr" does this even easier (IMHO of course ;) hal:~ # echo "This|should|be|on|separate|lines" | tr \| \\n This should be on separate lines > I think awk fits better for this task, IMHO of course :-) >=20 > csoler@gudu$ echo "This|should|be|on|separate|lines" | awk -F"|" '{fo= r >=20 > (i=3D1; i<=3D NF; i++) print $i}' > This > should > be > on > separate > lines >=20 > I hope this helps you... >=20 > Cheers, > C=E9sar >=20 > - > To unsubscribe from this list: send the line "unsubscribe linux- > admin" > in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >=20 >=20 - To unsubscribe from this list: send the line "unsubscribe linux-admin" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html