Usuń ostatnie n znaki ze stdin

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