[[email protected]~]# cat file 1 2 3 4 5 6 7 8 9 [[email protected]~]# cat file |xargs -n1 [[email protected]~]# xargs -n 1 <file [[email protected]~]# tr " " "\n" <file [[email protected]~]# sed ‘s/ /\n/g‘ file [[email protected]~]# grep -oP ‘\S+‘ file [[email protected]~]# awk ‘{for(i=1;i<=NF;i++)print $i}‘ file [[email protected]~]# awk -vOFS="\n" ‘$1=$1‘ file [[email protected]~]# awk ‘{OFS=RS}NF=NF‘ file 1 2 3 4 5 6 7 8 9
时间: 2024-11-05 19:02:03