The following mfsort command takes a text file, unsorted.txt and a file a.1, sorts its records in ascending order, and outputs the result to the file sorted.txt.
set $infile=unsorted.txt set $outfile=sorted.txt mfsort take a.1
where unsorted. txt contains:
BBBBBBBBBBBBBBBBBBBB CCCCCCCCCCCCCCCCCCCC AAAAAAAAAAAAAAAAAAAA
and a.1 contains:
use $infile org LS sort give $outfile