Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Cookbook: from TCC to TCC/LE

I'm starting this thread for people who are interested in a cookbook of recipes to combine TCC/LE commands so that they achieve the same result of a command that only TCC/TCMD (pay version) provides.

Please feel free to reply to this thread with your own recipes. I'm suggesting a cookbook format:
  • Concise title/purpose
  • TCC/TCMD command - with precise command-line switches
  • TCC/LE command(s) - equivalent to the command above
  • Concise explanation (optional)
 
And here's the first one:
Skip first 10 lines of "file"
TCC:
PHP:
TAIL /N+10 /N 99999 "file"
TCC/LE:
PHP:
FFIND /+10 /K /V /M /E"^.?" "file"
Output contents of "file" from line 11 to EOF for files with <= 99999 lines

/E"^.?" should match all start-of-line sequences, thus it should work even for files that aren't properly terminated with an end-of-line (EOL) sequence (CRLF), or with linux formatted files (EOL=LF). If you know that your file is properly formatted with EOL=CRLF then you might prefer using
PHP:
FFIND /+10 /K /V /M /T"^r^n" "file"
which is faster and even works with the /R (reverse) option.
 

Similar threads

Back
Top