写了一个简单的命令行

2020-11-09  本文已影响0人  大雨滂沱在关外

command opreation

history > history.log

awk '{print $2}' history.log > history_2.log

sort history_2.log | uniq > history_3.log

综合起来

history | awk '{print $2}' | sort | uniq -d | grep -v '#' > result_history.log

上一篇 下一篇

猜你喜欢

热点阅读