From owner-freebsd-questions Mon Apr 15 19:34:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from catalyst.sasknow.net (catalyst.sasknow.net [207.195.92.130]) by hub.freebsd.org (Postfix) with ESMTP id 8467A37B419 for ; Mon, 15 Apr 2002 19:34:08 -0700 (PDT) Received: from localhost (ryan@localhost) by catalyst.sasknow.net (8.11.6/8.11.6) with ESMTP id g3G2Y6J65620; Mon, 15 Apr 2002 20:34:06 -0600 (CST) (envelope-from ryan@sasknow.com) X-Authentication-Warning: catalyst.sasknow.net: ryan owned process doing -bs Date: Mon, 15 Apr 2002 20:34:06 -0600 (CST) From: Ryan Thompson To: ann kok Cc: freebsd-questions@FreeBSD.ORG Subject: Re: script In-Reply-To: <20020416020000.95326.qmail@web20110.mail.yahoo.com> Message-ID: <20020415202710.E57269-100000@catalyst.sasknow.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ann kok wrote to freebsd-questions@FreeBSD.ORG: > Hi all > > I have a file, data is as column > > File > ---- > ann > angel > brown > manuel > > How do I change the data as line? > ann angel brown manuel Not really FreeBSD related, but UNIX related, and so it goes... Command substitution will do this nicely. One out of about a dozen ways I could think to accomplish this (assuming your infile is named file.txt): echo ` SaskNow Technologies - http://www.sasknow.com 901 1st Avenue North - Saskatoon, SK - S7K 1Y4 Tel: 306-664-3600 Fax: 306-664-3630 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message