Hi
I have a file which came out of our application - the final line of this file *should* end with \r\f.
Unfortunately I needed to edit the file (in vi) which puts an additional \n on the end of the file - so now it ends \r\f\n. My question is how can I remove the final \n.
I know I could use tr to remove (or change) all \n's & I expect I could use sed to remove this char but I don't know how to - any ideas?
Thanks, Chris
I have a file which came out of our application - the final line of this file *should* end with \r\f.
Unfortunately I needed to edit the file (in vi) which puts an additional \n on the end of the file - so now it ends \r\f\n. My question is how can I remove the final \n.
I know I could use tr to remove (or change) all \n's & I expect I could use sed to remove this char but I don't know how to - any ideas?
Thanks, Chris