shell sort result to self

You can use file redirection to redirected the sorted output:

sort input-file > output_file

Or you can use the -o--output=FILE option of sort to indicate the same input and output file:

sort -o file file
posted @ 2019-02-12 11:51  kakaisgood  阅读(121)  评论(0编辑  收藏  举报