cut使用举例
简单的cut举例
cut举例cut -d':' -f1 /etc/passwdgrep "/bin/bash" /etc/passwd | cut -d':' -f1,6获取字符串部分字符
command | cut -c1-8command | head -c8
command | awk '{print substr($0,1,8);exit}'
command | sed 's/^\(........\).*/\1/;q'分隔(delimiter)符使用tab的cut方法
tab的cut方法多个(任意数量)空格的分隔使用cut方法
cut方法参考
Last updated