• Source
    1. #!/bin/bash
    2. s="Group: ch.qos.lback Name: lback.sa Version: 0.1.11
    3. Manifest Project URL: http://www.xx.x
    4. Manifest license URL: http://www.xx.x/l.html
    5. SUM License: Abra Nabra License - v 3.0 \- http://www.xx.x/l.html
    6. SUM License: GNU Lesser General Public License \- http://www.gnu.org/licenses/lhtml
    7.  
    8. Group: com.aol.sim Name: cycact Version: 3.0.0-RT
    9. SUM Project URL: https://xx.com/xx
    10. SUM License: The Apache Software License, Version 2.0 \- http://www.apache.org/licenses/LICENSE-2.0.txt
    11.  
    12. Group: com.fa Name: ce Version: 1.3.4
    13. SUM License: The Apache Software License, Version 2.0 \- http://www.apache.org/licenses/LICENSE-2.0.txt
    14. Embedded license: cle-1.3.4.jar/META-INF/LICENSE cle-1.3.4.jar/META-INF/NOTICE"
    15.  
    16. sed 's/^SUM License: *\([^\]*\).*/&;\1/' <<< "$s"