Supprimer les n caractères des derniers derniers

sed 's/.$//' #To remove the last character
sed 's/.....$//' #To remove the last 5 characters
Vivi