问题
Code:
(>nul 2>nul findstr /m "^" "myfile.txt") && echo ok || echo empty or absent
I asked because this:
>nul 2>nul findstr /m "^" "myfile.txt" && echo ok || echo empty or absent
appears equivalent.
来源:https://stackoverflow.com/questions/46085095/whats-the-benefit-of-the-brackets-here