I devised some script to get line numbers and work what lines my section starts and finishes on then uses tail and head to get this text.
Then some bright spark said try this sed code, and its works great.
Thanks blackhole64!
sed -n \"/^Rule Summary:/,/^Total violations found:/p\"
No comments:
Post a Comment