Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!claris!sts!roy From: roy@sts.sts.UUCP Newsgroups: comp.sources.wanted Subject: Column shifting Message-ID: <68200001@sts> Date: 18 May 89 19:04:00 GMT Lines: 23 Nf-ID: #N:sts:68200001:000:891 Nf-From: sts.sts.UUCP!roy May 18 12:04:00 1989 I'm wondering if there's been a program written that takes a file and outputs that same file except with arbitrary columns shifted over. Some examples are: input file is: 0123456789 Move column 7 to column 1: 0712345689 Move column 7 to column 1, column 3 to column 5: 0712453689 Move column 7 to column 1, column 3 to column 8: 0712456839 This sounds a bit like the bubble sort, so I think it probably exists. Just out of curiosity, are there any other algorithms out there? Thanks. ================================================================== Roy Bixler | UUCP: ...!{claris,sun}!sts!roy | Semiconductor Test Solutions | Internet: sts!roy@Claris.COM | 4101 Burton Dr. | phones: (408) 727-2885 x132 (work)| Santa Clara, CA 95054 | (408) 289-1035 (home)| ==================================================================