我在将cut
输出馈送到ls
.
这不起作用:
rep="S1_1000,0000-00-00c,0000-00-00d,0000-00-00e"
ls tab_yeast/{`echo $rep | cut -f2- -d','`}*.tab.gz
ls: cannot access tab_yeast/{0000-00-00c,0000-00-00d,0000-00-00e}*.tab.gz: No such file or directory
Run Code Online (Sandbox Code Playgroud)
而 ls 在该字符串上有效:
ls tab_yeast/{0000-00-00c,0000-00-00d,0000-00-00e}*.tab.gz
Run Code Online (Sandbox Code Playgroud)
任何的想法?