PDA

View Full Version : storing program output into a variable. (WXP-Pro)



cbinckly
05-11-2006, 01:27 PM
Hi,

I am trying to create a batch file that will run grep on a log file, searching for the keyword ERROR. I would like to save that result set in a variable, so I can test if it is null (empty). Is that possible? If so, what kind of syntax?

Thanks a lot