Friday, November 6, 2009

How to delete the last character in a line?

This is simple and without any description, here is the regex.


# echo "This is last character" | sed 's/.$//g'
This is last characte

No comments: