shell 编程练习:编写一个Shell脚本,该脚本接收一个字符串s,输出名字中含有s的进程

编写一个Shell脚本,该脚本接收一个字符串s,输出名字中含有s的进程

#!/bin/sh
echo "Enter a string:"
read s
echo "Processes whose name includes "$s":"
ps aux | grep $s

猜你喜欢

转载自blog.csdn.net/COFACTOR/article/details/115255820