Change text in argument for xargs (or GNU Parallel)
问题 I have a program that I can run in two ways: single-end or paired-end mode. Here's the syntax: program <output-directory-name> <input1> [input2] Where the output directory and at least one input is required. If I wanted to run this on three files, say, sample A, B, and C, I would use something like find with xargs or parallel: user@host:~/single$ ls sampleA.txt sampleB.txt sampleC.txt user@host:~/single$ find . -name "sample*" | xargs -i echo program {}-out {} program ./sampleA.txt-out .