RHEL/Centos7 Shell tips: git/awk/sort/uniq

版权声明:hushui版权所有 https://blog.csdn.net/hushui/article/details/83506458

lake@localhost:~/Google/git-android-8.1.0_r33$ git whatchanged device  |awk  -F/ '{print $2}' |sort  |uniq 

asus
common
generic
google
huawei
lge
linaro
sample
lake@localhost:~/Google/git-android-8.1.0_r33$ 
lake@localhost:~/Google/git-android-8.1.0_r33$ 
lake@localhost:~/Google/git-android-8.1.0_r33$ git checkout HEAD^ -- device/asus  device/common    device/lge  device/linaro

猜你喜欢

转载自blog.csdn.net/hushui/article/details/83506458
今日推荐