Re: [DG-SCRIPTS] bug in dg_olc.c:trigedit_create_index()

From: Sean Daley (sdaley@BBNPLANET.COM)
Date: 11/05/98

Actually, I was a little surprised that this DID work since
what George said is true.  If you do a ls (blah) it does
look like how George showed.  I never noticed though that if you
redirect it to a file it won't like it does on stdout.

To just add to what George said though, you can also do

echo *.trg | tr ' ' '\n' | sort -n > index

This will put it in the numeric order you need.


At 03:44 PM 11/05/1998 -0500, you wrote:
>George, try it.  it works.  what is ls alias'd to for you?
>Does you echo statment send them in numeric order or:
>George <> on 11/05/98 02:33:26 PM
>On Thu, 5 Nov 1998, Angus Mezick wrote:
>>You will need to use these commands to recover your index:
>>in lib/world/trg:
>>ls ?.trg>index
>>ls ??.trg>>index
>>ls ???.trg>>index
>>ls ????.trg>>index
>>echo \$>>index
>Might want to use 'ls -1' or you'll end up with this:
>moving:/var/src/linux# ls
>COPYING         MAINTAINERS     Rules.make      drivers/        init/
>lib/            net/
>CREDITS         Makefile      fs/             ipc/
>mm/             scripts/
>Documentation/  README          arch/           include/        kernel/
>modules/        vmlinux*
>Which is obviously not correct. :)
>Or just:
>echo *.trg "$" | tr ' ' '\n' > index

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/15/00 PST