I have a bunch of folders which have a subfolder somewhere called 360.
find . -name '360' -type d -exec 'echo "{}"' \;
output:
find: echo "./workspace/6875538616c6/raw/2850cd9cf25b/360": No such file or directory
For each found item, I want to do a curl call, and trigger a Jenkins build job. My problem is that ./ part at the start. I should be able to cut it off like this:
find . -name '360' -type d -exec 'echo {} | cut -c 2-' \;
But because it starts with a ./ it will just be executed ("No such file or directory").
How can I get the output from find, without the leading ./
?
update:
Here is the whole thing with a jenkins curl call:
find reallylongfolderstructure -name '360' -type d -exec 'curl http://user:[email protected]/jenkins/job/jobname/buildWithParameters?token=ourtoken¶meter={}' \;
output
08:53:52 find: ‘curl http://user:token@ourdomain/jenkins/job/jobname/buildWithParameters?token=ourtoken¶meter=reallylongfolderstructure/something/lol/360’: No such file or directory
find
.