1 2 3 | $ su - # sort /etc/passwd > /etc/passwd-new # mv /etc/passwd-new /etc/passwd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | $ cat happybirthday.txt Happy Birthday to You! Happy Birthday to You! Happy Birthday Dear Tux! Happy Birthday to You! $ sort happybirthday.txt Happy Birthday Dear Tux! Happy Birthday to You! Happy Birthday to You! Happy Birthday to You! >$ tsort happybirthday.txt Dear Happy to Tux! Birthday You! |
1 2 3 4 5 6 | tsort <<EOF a b c d e f b c d e EOF |
1 2 3 4 5 6 | a b c d e f |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |