Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sed espressione, che fa?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
arthax
n00b
n00b


Joined: 10 Dec 2002
Posts: 48

PostPosted: Wed Jul 23, 2003 7:58 am    Post subject: sed espressione, che fa? Reply with quote

Ciao ragazzi,

qualcuno sa spiegare la sintassi del seguente comando sed:

Code:

emerge system -eup | sed -e "/ebuild/s:^.*] \([^ ]*\) *:\1:p;d"


Non capisco l'uso del ':', che non ho trovato nella doc. Così come la necessità di salvare ciò che sta nelle graffe '['...
Lo si trova in /usr/bin/dep-clean

Mah...
Code:

emerge system -eup | sed -e "s:^.*] ::p;d"

... non sarebbe un equivalente??


thx
Back to top
View user's profile Send private message
Ginko
Guru
Guru


Joined: 01 May 2002
Posts: 371
Location: nearby my linux laptop

PostPosted: Wed Jul 23, 2003 10:58 am    Post subject: Reply with quote

Pare proprio di si, l'unica differenza e' che la tua versione non elimina gli spazi alla fine della linea.

--Gianluca
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
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