uptime |sed 's/^.*up//' |sed 's/users.*//g'|awk '{for(i=1;i<NF;++i) printf $i "\t";printf "\n"}'|tr -d ','
效果:
uptime |sed 's/^.*up//' |sed 's/users.*//g'|awk '{for(i=1;i<NF;++i) printf $i "\t";printf "\n"}'|tr -d ','
效果:
转载于:https://www.cnblogs.com/yjt1993/p/10038902.html