- May
- 13,117
- 180
1. There is no link from "DO /P" (at the top of DO's help) to the explanation at the bottom.
2. I figured the opening '(' of DO's command would signal the end of DO's control arguments. So I was surprised at:
Double-quoting "grep ... | cut -f1" doesn't work. Back-quoting it works, as well as escaping the '|'. Is there a correct way?
2. I figured the opening '(' of DO's command would signal the end of DO's control arguments. So I was surprised at:
Code:
c:\users\vefatica\desktop> do l in /P grep aablock inbound.txt | cut -f1 ( echo %@word["/",1,%l] )
cut: fatal error: Can not open file '('
Usage : DO [n | FOREVER]
Double-quoting "grep ... | cut -f1" doesn't work. Back-quoting it works, as well as escaping the '|'. Is there a correct way?