A light replacement to the combination of sed/awk/grep/head/tail PR: 29837 Submitted by: Patrick Li <pat@databits.net>