Answers for "remove last n characters from stdin"

0

remove last n characters from stdin

sed 's/.$//' #To remove the last character
sed 's/.....$//' #To remove the last 5 characters
Posted by: Guest on August-25-2021

Code answers related to "remove last n characters from stdin"

Browse Popular Code Answers by Language