Skip to content

Instantly share code, notes, and snippets.

@xoosye
Created January 9, 2013 10:30
Show Gist options
  • Save xoosye/4492184 to your computer and use it in GitHub Desktop.
Save xoosye/4492184 to your computer and use it in GitHub Desktop.
1,sort命令排序 2,将字符转成大写 3,用comm命令比较文件
sort mac_data_xianmian.txt > sort_mac_data_xianmian_1.txt
tr 'a-z' 'A-Z' < sort_mac_data_xianmian_1.txt | cat > sort_xianmian_1.txt
comm -12 sort_mac_data.txt sort_xianmian_1.txt | cat > rs_xianmian_1.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment