79548886

Date: 2025-04-01 18:28:03
Score: 0.5
Natty:
Report link

Given that PCI address: and driver: lines go one by one, with Raku/Sparrow this is just few lines of code:

begin:
~regexp: "PCI Address:" \s+ (\S+)
~regexp: "driver:" \s+ [nvidia || amd || intel]
end:

code: <<RAKU
!raku
for streams().values -> $pci {
   say $pci<>.head()<captures><>.head
}
RAKU

 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alexey Melezhik