Delete the last two characters in the last line with sed :
$ sed '$s/..$//' file
If you are happy with the changes, use -i to save them back to the file:
$ sed -i '$s/..$//' file
If you want to delete the last two characters in a line each , this will be:
$ sed 's/..$//' file
Use -i again to save the changes back to the file:
$ sed -i 's/..$//' file
source share