title: How to parse version number from a package list and print out package name and version in separate lines?
body: <p>The packages are in the same folder and are able to list by
  &quot; ls -al | cut -c 47-&quot; and show as below</p>
  <pre><code>ncurses-6.2  
  netifd-2020-06-06-51e9fb81  
  net-snmp-5.9.1  
  nettle-3.5.1  
  nginx-util-1.4  
  odhcpd-full  
  openldap-2.4.48  
  openssl-1.1.1g    
  pciutils-3.7.0  
  pcre-8.44  
  pcsc-lite-1.8.13
  </code></pre>
  <p>I want to print out like this</p>
  <pre><code>name: ncurses-6.2  
  version: 6.2  
  name: netifd-2020-06-06-51e9fb81  
  version: 2020-06-06-51e9fb81  
  name: net-snmp-5.9.1  
  version: 5.9.1  
  name: nettle-3.5.1
  version: 3.5.1
  name: nginx-util-1.4
  version 1.4
  .
  .
  .
  </code></pre>
  <p>Currenly I use this in a shell script</p>
  <pre><code>ls -al | cut -c 47- &gt; package_list
  awk '{ print &quot;- name: &quot;$1&quot;\n version: &quot;}' package_list
  </code></pre>
  <p>Please advise how to improve the shellscript, thanks</p>