Sort write

By Sensui on Apr 01, 2005

For more questions mail me at, you can also add me on msn

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!



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


Sign in to comment.
Relinsquish   -  Apr 02, 2005

I see. Good work then. :)

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

LIQUID_NiTrO   -  Apr 01, 2005

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

Relinsquish   -  Apr 01, 2005

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

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.