#!/bin/bash
ps -ef |grep java |awk '{print $1,$2,$3,$4}'|while read a b c d
do
# echo a=$a b=$b c=$c
aa=" $a $b $c $d"
echo $aa
done
#!/bin/bash
ps -ef |grep java |awk '{print $1,$2,$3,$4}'|while read a b c d
do
# echo a=$a b=$b c=$c
aa=" $a $b $c $d"
echo $aa
done
转载于:https://my.oschina.net/kcw/blog/1522762