Article View: comp.sources.d
Article #5018Column shifting
From: roy
Date: Fri, 19 May 1989 17:45
Date: Fri, 19 May 1989 17:45
23 lines
1231 bytes
1231 bytes
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)|
==================================================================
Technical Details
Message-ID:
<68500002@sts>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!claris!sts!royShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!claris!sts!roy From: roy@sts.sts.UUCP Newsgroups: comp.sources.d Subject: Column shifting Message-ID: <68500002@sts> Date: 19 May 89 17:45:00 GMT Lines: 23 Nf-ID: #N:sts:68500002:000:891 Nf-From: sts.sts.UUCP!roy May 19 10:45:00 1989