从51reboot截取reboot使用正则awk正则a='51reboot'|echo $a|awk -F '51' '{print $2}' 转载于:https://blog.51cto.com/461205160/1907128