Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私が今持っているコード
line=$(ps -A|awk '/$name/{print $1}')
動作していないようです。私が欲しいのは、awkを使用してpsの出力をプロセス名で検索し、スクリプト内でpidを返すことです