5 Replies Latest reply: Jun 25, 2014 10:51 AM by Dude! RSS

    Getting revision of filename

    user5108636

      Hi,

           I want to get just the 1.0 before the rev in filename in the below filepath, how to do that in bash script.

       

          ABCService/ABCService/deploy/sca_ABCService_rev1.0.jar

       

      It could be any file revision like 12.0, 15.9, 1.7 so forth.

      Or is there a way I can get substring between 'rev' and '.jar' i.e. 1.0

       

      Thanks