awk ' !x[$0]++' test_file
sort -u test_file
sort test_file |uniq
参考:https://blog.csdn.net/zheng0518/article/details/51744795