How would you implement another text utility, like sort, for example, or maybe grep is a better rexample.