Sort write

By Sensui on Apr 01, 2005

For more questions mail me at darksensui@telenet.be, you can also add me on msn darksensui@hotmail.com

You can use this to write text in alphabetical order to a file.
It is very important the file you are writing to is empty or already sorted!

FORMAT:

/sortwrite "DIRECTORY\FILENAME.TXT" TEXT

Always add the "" !!!! If not, it will not work.

Before starting, make a file chr.txt and put it in the same directory as the script

Comments

Sign in to comment.
Relinsquish   -  Apr 02, 2005

I see. Good work then. :)

 Respond  
Sensui   -  Apr 02, 2005

of course you can use filter, but the chr.txt file makes it possible to sort any way you wants, like numbers higher than letters, etc

 Respond  
LIQUID_NiTrO   -  Apr 01, 2005

Lol @Relinsquish ... don\'t worry Sensui, been there done that before ;)

 Respond  
Relinsquish   -  Apr 01, 2005

alias sortwrite { write $1- | filter -ffct 1 32 $1 $1 } - Good effort though.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.