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
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
本文标题:写了一个简单的命令行
本文链接:https://www.haomeiwen.com/subject/lldlbktx.html
网友评论