What is the sed or awk command to delete the last two character of the last line in a file? There are about 60+ files I have to do this to. The last two characters are always the same: ||
Thanks, Vlad. I almost had it but didn't put the first $ in. Also, the command didn't work on my Sun box, but does work on my HP system. I guess I'll have to get gsed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.