segment

Display a block of text with delineated by a start pattern and an end pattern

2009/12/18

Taken idea from commandlinefu.com The command will display a segment from the file from the start pattern to the end pattern. function viewsegment() { tail -n +`fgrep -n -m 1 “$1” $3 | …


This website uses cookies to ensure you get the best experience on our website. Learn more Got it