查找ps后特定的线程号

ps_grep() {
    echo "$(ps|grep -v "grep"|grep "$1"|awk '{print $1}')"
}
posted @ 2020-11-17 16:40  JohnRed  阅读(216)  评论(0编辑  收藏  举报