Is it possible to grep a value then store it in a file via batch file??
Like for example,
grep "error 404" Mow*2015.txt | wc -l
grep "error 403" Mog*2015.txt | wc -l
Then I want it to put in a batch for it to generate another txt file or other extension.
set ARH = * grep for the 404 *
set ARG = * grep for the 403 *
ECHO %ARG% %ARH% >> admin.log
Is it possible to do so?