Bonsoir Bernard,

Cela te convient-il ?

$ echo "Butter 500 g" | sed 's/\([^0-9]\+\) \([[:digit:]]\+\) 
\([[:alpha:]]\+\)/\2\3 \1/' | tr '[A-Z]' '[a-z]'
500g butter
$
Bonne soirée,
l0f4r0

Répondre à