It's funny, i spend most days at work reminding people how sucky perl is, but this would be a perfect time for perl ...
generate_text | perl -nle 'm/regex/; print $1; print $2' On Fri, Dec 11, 2009 at 4:50 PM, David Hilton <[email protected]> wrote: > On Fri, Dec 11, 2009 at 4:43 PM, AJ ONeal <[email protected]> wrote: >> Is it possible to use grep to print out groupings rather than the text I'm >> getting? >> If not, I'm supposing that sed or awk is the right tool for the job? >> AtomicParsley 02\ Promise.m4a -T | grep 'Atom mdat @\(.*\)of size: \(.*\), >> ends @ \(.*\)' >> Atom mdat @ 589869 of size: 5716586, ends @ 6306455 > > Yeah, I'd just pass the result through awk: "awk '{print $4, $7, $10}'" > -------------------- > BYU Unix Users Group > http://uug.byu.edu/ > > The opinions expressed in this message are the responsibility of their > author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. > ___________________________________________________________________ > List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list > -- not sent from an iphwn Sent from Provo, UT, United States -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list
