Пишу скрипт инвентаризации. Запускаю команду lshw -class memory получаю вывод:
*-cache:0
description: L1 cache
physical id: 5
slot: L1 Cache
size: 128KiB
capacity: 128KiB
clock: 1GHz (1.0ns)
capabilities: pipeline-burst internal write-back unified
configuration: level=1
*-cache:1
description: L2 cache
physical id: 6
slot: L2 Cache
size: 1MiB
capacity: 1MiB
clock: 1GHz (1.0ns)
capabilities: pipeline-burst internal write-back unified
configuration: level=2
*-memory
description: System Memory
physical id: b
slot: System board or motherboard
size: 6GiB
*-bank:0
*-bank:0
description: SODIMM DDR3 Synchronous 800 MHz (1,2 ns)
product: RMT3170EF68F9W1600
physical id: 0
serial: 444EFF24
slot: DIMM 0
size: 4GiB
width: 64 bits
clock: 800MHz (1.2ns)
*-bank:1
*-bank:1
description: SODIMM DDR3 Synchronous 800 MHz (1,2 ns)
product: AM1L16BC2P1-B1FS
vendor: A-DATA Technology
physical id: 1
serial: 000073A1
slot: DIMM 1
size: 2GiB
width: 64 bits
clock: 800MHz (1.2ns)
Как сказать sed найти *-bank потом искать roduct,serial,slot,size