With Ant you can use a filter like:
**/target/*.war
That means all the paths that have target in them as the last directory. This will match
a/b/target/X.war
a/target/Y.war
a/b/c/target/Z.war
I would like to be able to copy in ubuntu with this kind of filtering...
Best case would to do
cp **/target/*.war DESTINATION
I know this doesn't work. Is there some way in ubuntu I can achieve this?