Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-qt/qt*-4.8.5 emerge mesgs - help/explain? [SOLVED]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
BobWya
n00b
n00b


Joined: 12 Aug 2012
Posts: 67
Location: Cambridge,UK

PostPosted: Mon Aug 05, 2013 7:29 pm    Post subject: Reply with quote

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.

:D :D


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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum