Entfernen Sie die letzten N -Zeichen von Stdin
sed 's/.$//' #To remove the last character
sed 's/.....$//' #To remove the last 5 characters
Vivi
sed 's/.$//' #To remove the last character
sed 's/.....$//' #To remove the last 5 characters