Display a block of text with delineated by a start pattern and an end pattern
| Hot: |
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 | head -`fgrep -n -m 1 "$2" $3 }
Display a block of text with delineated by a start pattern and an end pattern
related post
<< Compiz/Beryl issue on Fedora. check out http://browsershots.org/ >>
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
No comments yet, be the first!








Facebook
Digg
Delicious
Flickr
FriendFeed
LinkedIn
MyBlogLog
Orkut
Reddit
StumbleUpon
Technorati
Twitter
Youtube






