SED remplace tout jusqu'à la correspondance en ligne
echo remove_staystay... | sed 's/.*\(stay.*\)/\1/g'
stay #remove all but from last ocurrence match until end
Armandres
echo remove_staystay... | sed 's/.*\(stay.*\)/\1/g'
stay #remove all but from last ocurrence match until end