Yes, I have looked (in vain) for this in Help. I have the calluses to prove it. I’ve also searched most of the Internet 4DOS-related websites with no success.
What is the TC version of the UNIX “grep”. Right now I’m using the ‘The Berkeley Utilities V2.0’ ‘grep’ like this to test for a string in a file
type "%theMonFile%" |grep -s markit
set exitcode=%_?
That works fine, but there has to be an equivalent way to do it with TC commands, but I cannot find out how to do it.
A more basic use of ‘grep’ is to find all lines in a text file that contain a certain string. I’d like to know how to do that too.
Normally, I’d be happy with just knowing what is used to get these two file searches done like ‘grep’. But given the scant nature of the examples in Help, a few examples would be appreciated.
Or, let me know what to search for and I can try to find something in the forums.
Thanks
What is the TC version of the UNIX “grep”. Right now I’m using the ‘The Berkeley Utilities V2.0’ ‘grep’ like this to test for a string in a file
type "%theMonFile%" |grep -s markit
set exitcode=%_?
That works fine, but there has to be an equivalent way to do it with TC commands, but I cannot find out how to do it.
A more basic use of ‘grep’ is to find all lines in a text file that contain a certain string. I’d like to know how to do that too.
Normally, I’d be happy with just knowing what is used to get these two file searches done like ‘grep’. But given the scant nature of the examples in Help, a few examples would be appreciated.
Or, let me know what to search for and I can try to find something in the forums.
Thanks