TPIPE examples?

ccb

Jul 13, 2009
47
0
TCC 14.02.44 x64 Windows 7 [Version 6.1.7601]
Are there any examples of TPIPE usage?

First attempts at using TPIPE are not the time and labor-saving experience I expected...
From the Help for TPIPE:
[/string=type,string]
and
/string=type,MatchCase,string
Hmm.

>tpipe /input=AssemblyInfo.cs /output=AssemblyInfo2.cs /string=4,AssemblyVersion
TPIPE: The parameter is incorrect.
"/string=4,AssemblyVersion"

>tpipe /input=AssemblyInfo.cs /output=AssemblyInfo2.cs /string=4,"AssemblyVersion"
TPIPE: The parameter is incorrect.
"/string=4,"AssemblyVersion""
 

ccb

Jul 13, 2009
47
0
Some progress:
tpipe /input=AssemblyInfo.cs /string=4,0,"AssemblyVersion"

Produces output to stdout.
 
Feb 23, 2012
240
3
I often use TPIPE to batch-convert a folder of text files from ASCII/ANSI to UTF-8, like so:

for /O:n %x in (*.txt) tpipe /input=%x /output=Converted_%x /unicode=ansi,UTF-8

(The /O:n option is necessary to avoid reprocessing the output files).

I agree with the other posters here that it would be great to have a post (or even forum) with a collection of real-world use cases and examples with TPIPE.
 

Similar threads