BobWya Apprentice
Joined: 12 Aug 2012 Posts: 228 Location: Cambridge,UK
|
Posted: Mon Aug 05, 2013 7:29 pm Post subject: |
|
|
dalek wrote: | Holysword wrote: |
Code: | emerge $(qlist -IvC qt | grep 4.8 | sed s/-4.8.*$//g) |
|
This worked like a charm here. Now I need to figure out HOW it did that. I'm not familiar with sed yet.
Thanks MUCH for that tip.
|
I prefer gawk myself...
Code: | emerge -p $(qlist -IvC qt | gawk '{ if (sub(/\-4\.8.*/, "")) print $0 }') |
I devoted a few weeks to becoming a gawk guru - I find it quite useful for scripts... The syntax for sed is a bit too obtuse for my liking...
Anyway - there's many ways to skin a cat...
Bob |
|