ls -l | awk '{print $5}' | sed -n '2p' awk 是很实用的文本处理命令,print 到后带的是你要获取第几列,sed -n 是指定第几行。 转载于:https://www.cnblogs.com/navysummer/p/10831648.html