mph151 has asked for the wisdom of the Perl Monks concerning the following question:
I am old school, I have a DOS batch that copies a file created by another app from one location and drops it in another. The app adds a CR and an LF at the end of the text file. I need to remove the last CR and LF. The file transfer runs every night and the data size will vary. I know Perl could do this but I an to much of a novice with Perl. Can the good monks help me? Mike
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: delete last CR and LF from txt
by roboticus (Chancellor) on Feb 22, 2010 at 18:08 UTC | |
|
Re: delete last CR and LF from txt
by ikegami (Patriarch) on Feb 22, 2010 at 18:19 UTC | |
|
Re: delete last CR and LF from txt
by BrowserUk (Patriarch) on Feb 22, 2010 at 19:28 UTC | |
by bot403 (Beadle) on Feb 22, 2010 at 23:00 UTC | |
|
Re: delete last CR and LF from txt
by ww (Archbishop) on Feb 22, 2010 at 18:11 UTC |