- Sep
- 34
- 0
Example of what works
DIR /B | HEAD /N10 | TAIL /N1 -- this will display the 10th item, subdirectory or file
Example of what doesn't work
DIR /B | HEAD /N10 > tempfile -- this will NOT write the first 10 items to 'tempfile'
What I'm seeing is the ability of 'HEAD' to pipe it's output to another program, i.e. 'TAIL'.
But unlike 'DIR', 'HEAD' will NOT redirect to a file. It appears to work as nothing is written
to the screen.
Is this a bug or WAD?
I have Version 11
,,,, a bit later...
I found the redirected files - created in the root?? I was 2 directories down from the root! .. So I guess I have to be more explict in where I want the redirected file !!?
DIR /B | HEAD /N10 | TAIL /N1 -- this will display the 10th item, subdirectory or file
Example of what doesn't work
DIR /B | HEAD /N10 > tempfile -- this will NOT write the first 10 items to 'tempfile'
What I'm seeing is the ability of 'HEAD' to pipe it's output to another program, i.e. 'TAIL'.
But unlike 'DIR', 'HEAD' will NOT redirect to a file. It appears to work as nothing is written
to the screen.
Is this a bug or WAD?
I have Version 11
,,,, a bit later...
I found the redirected files - created in the root?? I was 2 directories down from the root! .. So I guess I have to be more explict in where I want the redirected file !!?