1
I have a bunch of C programs from K&R and of course, no return statement. I was wondering if there was a way to cat to the end of each file (except one line before the end, so EOF - 1) the statement "\treturn 0;" including the tab before it and the newline after it.
Welcome to Super User! Please always include your OS. Solutions very often depend on the Operating System being used. Are you using Windows, Unix, Linux, BSD, OSX, something else? Which version? – terdon – 2014-06-28T13:57:26.360