sort
Use this commmand to sort a file. For example, suppose we have a file colors with contentsred cloth green grass black sea white elephant blue whaleyellow paper
Then we can do this:
% sort colors
black sea blue whalegreen grassred cloth yellow paperwhite elephant
To store the output in a file named sortedcolors we do this:% sort colors >sortedcolors
No comments:
Post a Comment