I am finding the files in specific location now I need to extract the file name which is after last slash from that path without its extension like *.war
by using shell scripting.
I tried below to find out the data in the path:
find /data1/jenkins_devops/builds/develop/5bab159c1c40cfc44930262d30511ac7337805fa -mindepth 1 -type f -name '*.war'
Ex.- This folder "5bab159c1c40cfc44930262d30511ac7337805fa" contains multiple .war file like interview.war
, auth.war
so I am expecting output is interview war.
Can someone please help?