cat oldboy.txt
I am oldboy myqq is 49000448
cut -d " " -f3,6 oldboy.txt
oldboy 49000448
awk '{print $3" " $6}' oldboy.txt
oldboy 49000448
cut 切割,简单的取列命令 -d指定分隔符 -f数字 取第几列。-f3,6 -c按字符取
cut -c 6-11,20- oldboy.txt
oldboy 49000448
cat oldboy.txt
I am oldboy myqq is 49000448
cut -d " " -f3,6 oldboy.txt
oldboy 49000448
awk '{print $3" " $6}' oldboy.txt
oldboy 49000448
cut 切割,简单的取列命令 -d指定分隔符 -f数字 取第几列。-f3,6 -c按字符取
cut -c 6-11,20- oldboy.txt
oldboy 49000448