- Feb
- 240
- 3
I'm looking for a way to do grep-type filtering on a text stream in TCC. For instance, I'd like to filter out lines of a given file with a string of 5 or more digits.
With powershell I can use the "match" function:
type filename.txt | where {$_ -match "\d{5}"}
Is there an equivalent within TCC? I've already seen that TCC does have excellent regex support. For instance, to perform a "dir" of filenames with strings of 5 or more digits, I can write:
dir "::\d{5}"
However, I'd like to be able to harness TCC's regex processing with any piped text stream on the command line. Is this possible?
With powershell I can use the "match" function:
type filename.txt | where {$_ -match "\d{5}"}
Is there an equivalent within TCC? I've already seen that TCC does have excellent regex support. For instance, to perform a "dir" of filenames with strings of 5 or more digits, I can write:
dir "::\d{5}"
However, I'd like to be able to harness TCC's regex processing with any piped text stream on the command line. Is this possible?