Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!pinet!marc From: marc@pinet.aip.org (Marc Wiener) Newsgroups: comp.unix.questions Subject: Sort Message-ID: <1990Aug30.175913.26445@pinet.aip.org> Date: 30 Aug 90 17:59:13 GMT Organization: American Institute of Physics Lines: 25 I am trying to sort a directory containing file names as follows: f002s0 f002s1 f002s3 w002s0 w002s1 w002s3 I would like the files sorted on character positions 1-5, with character position 0 (the f or w) in reverse, i.e., w002s0 f002s0 w002s1 f002s1, etc. This does not seem like it should be so difficult, and I assume I'm missing something in my understanding of sort. I can sort this on a non-Unix OS without problems. What am I doing wrong? -- Marc Wiener | marc@pinet.aip.org American Institute of Physics | marc@aip.bitnet 500 Sunnyside Blvd. |