Stop TPIPE /EOL removing bad EOLs (and TPIPE changine EOLs)?

May 20, 2008
11,414
99
Syracuse, NY, USA
Fom the help, regarding TPIPE's /EOL's 5th parameter:

Remove (optional) - Whether to remove bad EOLs (default 1)

If I understand that correctly, then it doesn't seem to be working. I have this file (with a bare LF in it).

Code:
v:\> type/x 12.txt
0000 0000 31 61 62 63 0a 64 65 66  32                       1abc.def2

Below, TPIPE /EOF removes that bare LF regardless of the value of it's 5th parameter.

Code:
v:\> tpipe /input=12.txt /output=12.txt.bak /eol=2,0,0,0,0

v:\> type/x 12.txt.bak
0000 0000 31 61 62 63 64 65 66 32                           1abcdef2

v:\> tpipe /input=12.txt /output=12.txt.bak /eol=2,0,0,0,1

v:\> type/x 12.txt.bak
0000 0000 31 61 62 63 64 65 66 32                           1abcdef2

And if I don't even use /EOL, TPIPE will (apparently) change bad EOLs.

Code:
v:\> type/x 12.txt
0000 0000 31 61 62 63 0a 64 65 66  32                       1abc.def2

v:\> tpipe /input=12.txt /output=12.txt.bak /simple=6

v:\> type/x 12.txt.bak
0000 0000 31 61 62 63 0d 0a 64 65  66 32                    1abc..def2

I don't like TPIPE doing something I didn't ask it to do.
 
Hey @vefatica, you are correct about the auto change of EOL, as it is indicated in the log file.
Code:
TextPipe Engine Log File

datetime,level,message
2020-08-10 10:29:01,Info,Log file started
2020-08-10 10:29:01,Info,Filter name []
2020-08-10 10:29:01,Info,Job started by [Joe Caverly]
2020-08-10 10:29:01,Info,Input file [E:\Utils\jlckcalc.txt]  Size: 85,007 bytes
2020-08-10 10:29:01,Info,File input:include binary
2020-08-10 10:29:01,Info,Convert EOL Auto - 1402 changes made
2020-08-10 10:29:01,Info,Display debug window
2020-08-10 10:29:01,Info,1402 line(s) processed
2020-08-10 10:29:01,Info,Output file [C:\Users\JOECAV~1\AppData\Local\Temp\tpi660.tmp]  Size: 90,615 bytes
2020-08-10 10:29:01,Info,Merge to file C:\Users\JOECAV~1\AppData\Local\Temp\tpi660.tmp
2020-08-10 10:29:01,Info,Merge to file C:\Users\JOECAV~1\AppData\Local\Temp\tpi660.tmp
2020-08-10 10:29:01,Info,Files merged to [C:\Users\JOECAV~1\AppData\Local\Temp\tpi660.tmp]
2020-08-10 10:29:01,Info,Job finished. 1 of 1 files processed, 0 binary files skipped, 0 non-binary files skipped

Joe
 
Similar threads
Thread starter Title Forum Replies Date
vefatica Start/stop screensaver from TCC? Support 12
L WAD In console, tabs are rendered with non-uniform tab-stop spacing Support 16
T Fixed V18 debugger crashed on stop button Support 2
B How to? why does my BTM stop Support 2
F How to? Stop hijacking control-shift-z Support 6
A How to? Stop a command in the middle of its operation Support 10
krischik Stop Script after Syntax Error. Support 6
samintz How to? TPIPE /simple=61 Support 6
R Bug TPIPE's pdf to text conversions don't work Support 2
Kachupp How to? tpipe Support 4
H TPIPE /simple=4 Support 12
D TPIPE produces unwanted logs. Support 1
Kachupp How to? tpipe Support 8
vefatica Documentation TPIPE, /perl, DotMatchesNewLines Support 1
vefatica TPIPE in an alias? Support 2
C How to? TPIPE ?'s Support 2
H History and TPipe Oddness Support 3
Jay Sage Baffling Behavior With TPIPE Support 5
vefatica TPIPE: unbalanced escaped quotes in a regex? Support 5
Joe Caverly Multiple Text Searches at once using FFIND or TPIPE Support 4
Kachupp FFIND TPIPE Support 9
vefatica TPIPE and avarice? Support 5
Peter Murschall TPIPE generate unicode on Piping or redirecting Support 3
x13 TPIPE /REPLACE - Remove line (including EOL) Support 3
Charles Dye Documentation TPIPE /REPLACELIST Support 0
Joe Caverly TPIPE and /inputstring Support 3
vefatica How to? Add real <ESC> characters with TPIPE Support 2
vefatica How to? TPIPE ... see output right away? Support 4
vefatica TPIPE.EXE crashes on Ctrl-C Support 9
O TPIPE: Error -Can´t access textpipeengine.dll Support 24
vefatica Extract fields with TPIPE? Support 10
vefatica TPIPE, crash and question Support 1
MickeyF Another TPIPE question Support 6
MickeyF Can't get my TPIPE /replace to work Support 4
Joe Caverly Printing TPIPE documentation Support 3
C WAD tpipe /simple=28 Support 8
vefatica Remove double-quotes with TPIPE Support 4
vefatica TPIPE crashes on Ctrl-C Support 1
C How to? Add date/time to custom tpipe based BTM Support 1
C tpipe /simple=28 error Support 5
C TPipe /dup Support 5
T TPipe: Replacing String with Double Quotes Support 3
C tpipe and extract email addresses Support 1
vefatica How do I do this with TPIPE? Support 1
vefatica TPIPE's /perl option? Support 1
D TPIPE help typo Support 0
vefatica TPIPE access violations are back Support 2
Joe Caverly Word Count using TPIPE Support 10
Dan Glynhampton TPIPE in Build 41 Support 4
Phileosophos TPIPE doesn't work at all with v16 Support 3

Similar threads