ls |awk -F . '{print $1}'|awk -F '-[0-9]' '{print $1}' 转载于:https://www.cnblogs.com/uglyliu/p/10255998.html