On Fri, 28 Aug 2015 13:58:33 -0700 (PDT) Bob <
buha...@gmail.com> wrote:
B> I've made a few attempts at this, but it's not working. I have a structure
B> like this:
B> /srv/data/dataset1
B> /srv/data/test1_prog1_123
B> /srv/data/test2_prog1_5442
B> /srv/data/test3_prog1_123
B> /srv/data/test4_prog2_6773
B> I need to get rid of the stuff with .*_prog1_.* and .*_prog2_.* in it, but
B> leave the other stuff.
You could build the slist of such files with findfiles()
https://docs.cfengine.com/latest/reference-functions-findfiles.html
So `/srv/data/test/*_prog[12]_*` might work for you.
Ted