What's the benefit of the brackets here?

2019-08-18 07:09发布

问题:

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.

标签: cmd windows-7