find for key word
I have bunch of files start out with error_log_........
in these log file and there are an error that I am interested (error number 307). Any way, I am looking for a command where I can look into all of these files for these error and write to another file say test.txt and below is the command I use but doesn't seem to work.
$cat error_log* |grep 307 > test.txt
doesnt' seem to work, can someone please give me some advises?