title: shell script to get the file name from a string
body: <p>I need to get the basnename of the file (esrt-deghasdf-keystore) before .jks. I want to do it using shellscript. Is it possible?</p>
  
  <pre><code>abcdefgh 7369 4825 0 00:12:26 pts/10 0:37 java -Djavax.net.ssl.keyStore=/abc3/esrt/der/fer-def2/esrt-deghasdf-keystore.jks
  </code></pre>