While executing a shell script, an input string is similar to this:
test1/test2/Test.jar/Test2.jar/com/test/ui/GI.class
How can I extract:
test1/test2/Test.jar
[i.e. substring till first occurrence of '.jar' delimiter, inclusive], in shell script
How can I do this? I would not like to use cut and then append '.jar' at the end.
Thanks