001、
[root@pc1 test]# ls data gene.txt [root@pc1 test]# cat gene.txt ## 文本 gene1 gene2 gene3 [root@pc1 test]# tree . ├── data └── gene.txt 1 directory, 1 file [root@pc1 test]# cat gene.txt | xargs -i mkdir -p ./data/{} ## 对gene.txt中内容进行循环 [root@pc1 test]# tree . ├── data │ ├── gene1 │ ├── gene2 │ └── gene3 └── gene.txt 4 directories, 1 file
标签:xargs,gene,data,pc1,命令,linux,test,txt,root From: https://www.cnblogs.com/liujiaxin2018/p/17028501.html