카테고리 없음
[bash] 쉘 스크립트에서 ps 명령어의 결과를 한 라인씩 출력하기
냐옴
2024. 6. 7. 11:15
ps -ef | grep 'aa.sh' | grep -v grep | while IFS= read -r line
do
echo "$line"
done