title: Organize multiple lines of text, every third or second line, depending on initial string variable
body: <p>I have an output of lines generated as such:</p>
  <blockquote>
  <p>LINES=$(for i in {scsi,sat,ata,nvme}; do smartctl --scan -d $i ; done
  | sort | uniq | grep -v '^#|/dev/sd' | awk '{print$2,$3,$5}' | sed
  's/,<em>\r</em>$//') ; while IFS= read -r line; do smartctl -i $line; done
  &lt;&lt;&lt; &quot;$LINES&quot; | grep -v Family |  grep -e Model -e Product: -e Vendor:
  -e &quot;User Capacity&quot; -e &quot;Total NVM Capacity&quot; | awk -F&quot;[:\t]&quot; '{print$2}'</p>
  </blockquote>
  <p>Giving the following output:</p>
  <pre><code>           SEAGATE
            ST2000NX0273
      2,000,398,934,016 bytes [2.00 TB]
             SEAGATE
            ST2000NX0273
      2,000,398,934,016 bytes [2.00 TB]
             SEAGATE
            ST2000NX0273
      2,000,398,934,016 bytes [2.00 TB]
             SEAGATE
            ST2000NX0273
      2,000,398,934,016 bytes [2.00 TB]
             SEAGATE
            ST2000NX0273
      2,000,398,934,016 bytes [2.00 TB]
             SEAGATE
            ST2000NX0273
      2,000,398,934,016 bytes [2.00 TB]
   INTEL SSDSC2KB240G7
  240,057,409,536 bytes [240 GB]
                     INTEL SSDPE2KX020T7
               2,000,398,934,016 [2.00 TB]
                     INTEL SSDPE2KX020T7
               2,000,398,934,016 [2.00 TB]
  </code></pre>
  <p>I'm hoping to put each HDD information into it's own line, while simultaneously parsing the Capacity to display it's human-readable format. It's ok if the capacitt still has [brackets]. Desired output:</p>
  <pre><code>SEAGATE ST2000NX0273 2.00 TB
  SEAGATE ST2000NX0273 2.00 TB
  SEAGATE ST2000NX0273 2.00 TB
  SEAGATE ST2000NX0273 2.00 TB
  SEAGATE ST2000NX0273 2.00 TB
  SEAGATE ST2000NX0273 2.00 TB
  INTEL SSDSC2KB240G7 240 GB
  INTEL SSDPE2KX020T7 2.00 TB
  INTEL SSDPE2KX020T7 2.00 TB
  </code></pre>