TPIPE is the biggest new feature in Take Command v14 -- so big, and with so many options, that it can be hard to even begin to understand everything that it can do. We are working on some tutorials and videos featuring TPIPE that we will be featuring on our website. In the meantime let's look at some more TPIPE options.
Remove duplicate lines from a file:
tpipe /input=myinput.txt /output=myoutput.txt /dup=0,0,1,80,1
Show only the duplicate lines in a file (each line will be prefixed by the number of duplicates):
tpipe /input=myinput.txt /output=myoutput.txt /dup=1,0,1,80,1
Convert Files to and from Windows, Linux and OS X
Linux uses a single LF to indicate the end of a line; OS X uses a single CR, and Windows uses a CR/LF combination. Some applications don't handle non-native formats well; fortunately it's easy to convert the files.
To convert a file to Linux format:
tpipe /input=myinput.txt /output=myoutput.txt /eol=3,0,0
To convert a file to Windows format:
tpipe /input=myinput.txt /output=myoutput.txt /eol=3,2,0
Add line numbers to a file (starting at 1, incrementing by 1, and skipping blank lines):
tpipe /input=myinput.txt /output=myoutput.txt /line=1,1,1,1,-5d
See TPIPE in the Take Command v14 online help for a better idea of the remarkable scope of this command.