How do I delete the character before the last character in each line in a file?I tried sed 's/.$//' myfile1.txt which removed the last character of each line in myfile1.txt, but I am not sure how to delete the penultimate character in each line.
Deleting the second to last character in each line - with sed
sed