标签:grep sed awk
[root@localhost~]# cat file 1 2 3 4 5 6 7 8 9 [root@localhost~]# cat file |xargs -n1 [root@localhost~]# xargs -n 1 <file [root@localhost~]# tr " " "\n" <file [root@localhost~]# sed ‘s/ /\n/g‘ file [root@localhost~]# grep -oP ‘\S+‘ file [root@localhost~]# awk ‘{for(i=1;i<=NF;i++)print $i}‘ file [root@localhost~]# awk -vOFS="\n" ‘$1=$1‘ file [root@localhost~]# awk ‘{OFS=RS}NF=NF‘ file 1 2 3 4 5 6 7 8 9
本文出自 “卡卡西” 博客,请务必保留此出处http://whnba.blog.51cto.com/1215711/1853501
标签:grep sed awk
原文地址:http://whnba.blog.51cto.com/1215711/1853501