【发布时间】:2012-07-08 17:03:14
【问题描述】:
我想合并所有在某个位置有一位或两位数字的文件。基本上我想匹配 1-22 的数字。
我用 bash 写:
cat chr[0-9][0-9]{0,}_from6_new_mono.txt >all_autosomes_from6_new_mono.txt
我收到此错误:
cat: chr[0-9][0-9]0_from6_new_mono.txt: No such file or directory
但是文件名看起来像这样:
chr22_from6_new_mono.txt
或
chr1_from6_new_mono.txt
有人可以告诉我哪里有问题吗?谢谢:)
【问题讨论】: