[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

sed ou tr



bonjour,

je recherche le moyen de supprimer le caractère "/" avec sed et
obtenir un espace, j'ai essayé avec tr -d / file.txt mais je perd
l'espace

voici un extrait à traiter de file.txt :

math/coinmp
x11-fonts/gentium-basic
net/GeoIP
graphics/ImageMagick
devel/ORBit2
graphics/OpenEXR
security/openssh-askpass
x11-fm/thunar
print/a2ps


avec tr -d / j'obtiens ceci :

mathcoinmp
x11-fontsgentium-basic
netGeoIP
graphicsImageMagick
develORBit2

et je souhaiterai obtenir:

math coinmp
x11-fonts gentium-basic
net GeoIP
graphics ImageMagick

comment corriger le tir ?

slt
bernard


Reply to: