...上执行正常,在Mac上执行无效,原因是因为Mac上的sed是BSD版本,Linux上的是Gnu版本,在Mac上需要使用sed -e 's/ /\'$'\n/g' file.txt
5、awk '{for(i=1;i<=NF;i++)print $i}' file.txt
列转行
样例文件如下
cat file.txt
a
b
c
d
e
f
1、cat file.txt | tr "\n" ...
...多磁盘空间。
-c print only the count of matching records
# 仅输出匹配的统计记录
-L FILE only include reads overlapping this BED FILE [null]
# 仅包括和bed文件存在overlap的reads
-o FILE output file name [stdout]
# 输出文件的名称
-F INT only include reads with no...