Non-greedy SED matching
Linux, sed
To patch a particular string in a non greedy fashion and only print the match, try
hostname:$ sed -e 's/.*<\([^>]*\).*/\1/'
Comments powered by Disqus
Linux, sed
To patch a particular string in a non greedy fashion and only print the match, try
Copyright 2010. All Rights Reserved.