Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!shelby!portia!forel!karish From: karish@forel.stanford.edu (Chuck Karish) Newsgroups: alt.sources.wanted Subject: Re: matrix invert routine Message-ID: <6546@portia.Stanford.EDU> Date: 11 Nov 89 14:20:31 GMT References: <1612@xn.LL.MIT.EDU> <5174@omepd.UUCP> Sender: USENET News System Reply-To: karish@forel.stanford.edu (Chuck Karish) Organization: Mindcraft, Inc. Lines: 18 In article <1612@xn.LL.MIT.EDU>, rkc@XN (rkc) writes: | I have "spreadsheet-like" data that looks like this: | a1 b1 c1 | a2 b2 c2 | a3 b3 c3 | and I want to get it in a form like: | a1 a2 a3 | b1 b2 b3 | c1 c2 c3 | Before I re-invent the wheel, does anyone have anything that will do this? Is | there perhaps a unix tool that does this sort of thing? The `rs' utility distributed with 4.2 BSD UNIX does exactly this sort of thing. Pipe your data through `rs -t' and it will come out transposed. It was in /usr/src/new on the distribution tape. Chuck Karish karish@mindcraft.com (415) 493-9000 karish@forel.stanford.edu