Sort file abc.txt and save this sorted file in xyz.txt
$ sort -d abc >xyz.txt $ cat xyz.txt ************* Output ************* c d df dr e rt sd sxcdf ygs