Multiple Wildcard Patterns
Posted: Mon Feb 27, 2017 2:04 pm
Hello All,
I use to do this at a previous job, but I just cannot remember how I was doing it.
I am deleting files using the wildcard filters and I want to be able to put multiple file types into the same pattern.
For example, I am doing the following:
<delete version="1.0">
<fileset dir="/opt/local/GoAnywhere_Services/userdata/webdocs/aaaabbbb">
<wildcardFilter>
<include pattern="*.tif" />
<include pattern="*_ERMV_*" />
<include pattern="*_TIFF_*" />
</wildcardFilter>
</fileset>
</delete>
What I would like to do is:
<delete version="1.0">
<fileset dir="/opt/local/GoAnywhere_Services/userdata/webdocs/aaaabbbb">
<wildcardFilter>
<include pattern="*.tif"; "*_ERMV_*";"*_TIFF_*" />
</wildcardFilter>
</fileset>
</delete>
Any recommendations on how I can accomplish this?
Thanks in advance,
Adam
I use to do this at a previous job, but I just cannot remember how I was doing it.
I am deleting files using the wildcard filters and I want to be able to put multiple file types into the same pattern.
For example, I am doing the following:
<delete version="1.0">
<fileset dir="/opt/local/GoAnywhere_Services/userdata/webdocs/aaaabbbb">
<wildcardFilter>
<include pattern="*.tif" />
<include pattern="*_ERMV_*" />
<include pattern="*_TIFF_*" />
</wildcardFilter>
</fileset>
</delete>
What I would like to do is:
<delete version="1.0">
<fileset dir="/opt/local/GoAnywhere_Services/userdata/webdocs/aaaabbbb">
<wildcardFilter>
<include pattern="*.tif"; "*_ERMV_*";"*_TIFF_*" />
</wildcardFilter>
</fileset>
</delete>
Any recommendations on how I can accomplish this?
Thanks in advance,
Adam