[uug] grep, sed, or awk?

David Hilton quercus.aeternam at gmail.com
Fri Dec 11 16:50:29 MST 2009


On Fri, Dec 11, 2009 at 4:43 PM, AJ ONeal <Alvin.ONeal at gmail.com> 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}'"


More information about the uug-list mailing list