View previous topic :: View next topic |
Author |
Message |
arthax n00b
Joined: 10 Dec 2002 Posts: 48
|
Posted: Wed Jul 23, 2003 7:58 am Post subject: sed espressione, che fa? |
|
|
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 |
|
|
Ginko Guru
Joined: 01 May 2002 Posts: 371 Location: nearby my linux laptop
|
Posted: Wed Jul 23, 2003 10:58 am Post subject: |
|
|
Pare proprio di si, l'unica differenza e' che la tua versione non elimina gli spazi alla fine della linea.
--Gianluca |
|
Back to top |
|
|
|
|
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
|
|