input.txt(大约30K行)
RT|367079254|bn|ERTS01065811.1| 38 1 503
RT|367079251|bn|ERTS01065814.1| 56 3 502
RT|367079248|bn|ERTS01065817.1| 52 2 502
输出.txt
RT|367079254|bn|ERTS01065811.1|
38
1
503
RT|367079251|bn|ERTS01065814.1|
56
3
502
RT|367079248|bn|ERTS01065817.1|
52
2
502
答案1
答案2
Sed
:
sed -e 'y/\t/\n/' input.txt > output.txt
Awk
:
awk 'BEGIN { OFS = "\n" } { $1=$1; print }' input.txt > output.txt
答案3
和printf
:
printf '%s\n' $(<FILE)