Reputation: 1
I just need not to run all the files that I have in the dir, but I don't know what command should I use.
This is the command I use, but it changes ALL the files that I have inside of the dir, not only which I want...
parallel --plus echo data path: {} and fullname ID: {/..} VS digit-only ID: "{= s/.*\\/ABC\^//; s/-.*// =}" ::: ${WORKING_DIR}/*
I tried with regex as a replacement, but it didn't work.
Example files:
How can I omit this file from the others in Bash shell?
Thank you so much!
Read only the files I want in GNU Parallel.
Upvotes: 0
Views: 77
Reputation: 33740
It seems more a question for Bash than GNU Parallel. But you might be able to use skip
:
touch {1..10} foo.txt bar.cfg
parallel echo '{= /txt|cfg/ and skip =}' ::: *
This will make GNU Parallel skip the job, if the input matches txt or cfg.
Upvotes: 1