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.
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.