FFIND TPIPE

Aug 9, 2009
293
1
None of the above find data in streams. Help specifically says FFIND can under NTFS File Streams section.

Mon 5/08/19 16:51
c:\lps>dir /:b Test
Test
Look:$DATA

Mon 5/08/19 16:51
c:\lps>type Test:Look
January
February
March
April
May
June
July
August
September
October
November
December
Mon 5/08/19 16:51
c:\lps>ffind /l/t"November" Test:Look
TCC: (Sys) The system cannot find the file specified.
"Test:Test"

0 lines in 0 files

what am I missing... hmm i see that ffind is looking for test:test not the file specified
 
It finds the stream but doesn't display the name correctly.
Code:
v:\> dir /k /m /: timecheck.btm
2019-07-11  12:37           1,267  timecheck.btm
                              853    nist.txt:$DATA
                              297    nonnist.txt:$DATA

v:\> ffind timecheck.btm:nis*
V:\timecheck.btm

      1 file

v:\> ffind timecheck.btm:foo*

      0 files

I don't know if it should find the text. Maybe it's just a matter of the name.
 
The help is wrong; FFIND has never supported streams.

There's actually two issues here:

1) Because the filename doesn't have a path or an extension, TCC is interpreting it as a Netware / Lanman name. This is really old code that can probably be safely removed.

2) Even when the stream name is actually passed to FFIND (i.e., with a path or extension), FFIND is only looking at the filename part.

If this is a feature you need, you can post it in the Suggestions Forum.
 
FFIND seems to work with a Pipe to find text in a stream;
Code:
e:\utils>copy con test
con => E:\Utils\test
Line 1
^Z
     1 file copied

e:\utils>copy con test:look
con => test:look
January
February
March
April
May
June
July
August
September
October
November
December
^Z
     1 file copied

e:\utils>type test
Line 1

e:\utils>type test:look
January
February
March
April
May
June
July
August
September
October
November
December

e:\utils>type test:look | ffind /l/t"November"

---- CON
[11] November

  1 line in      1 file

Joe
 
FFIND seems to work with Stdin via redirection to find text in a stream;
Code:
e:\utils>ffind /l/t"November" <test:look

---- CON
[11] November

  1 line in      1 file

Joe
 
Last edited:
TPIPE seems to work with a Pipe and Stdin via redirection to find text in a stream;
Code:
e:\utils>type test:look | tpipe /grep=3,0,0,0,0,0,0,0,"November"
November

e:\utils>tpipe /grep=3,0,0,0,0,0,0,0,"November" <test:look
November

Joe
 
Thanks Joe that's how i got it to work.

On its own native syntax for each cmd it wont work
 
TO ALL JPSOFTWARE authors users my apologies TPIPE, RTFM problems. tpipe is good real good alongside tcc its brilliant
 

Similar threads