2teez: It is deleting all the lines with procs -----------memory---------- ---swap-- -----io---- --system-- but leaving all the lines with r b swpd free buff cache si so bi bo in I need to keep the first two lines procs -----------memory---------- ---swap-- -----io---- --system-- --- +--cpu----- r b swpd free buff cache si so bi bo in cs us s +y id wa st and delete any further occurence of these lines
In reply to Re^2: Removing matched pattern except the first pattern
by rahulruns
in thread Removing matched pattern except the first pattern
by rahulruns
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |