So look things up to see why something like this ought to do what you want:
while (<>) { next if (/^#/); s/(Key [0-5] 0x\w{14}).*/$1/; } continue { print }
In reply to Re: manipulating file contents
by graff
in thread manipulating file contents
by monkey-
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |