# Just use next format to grep between output of 2 different commands ;) { command1 & command2; } | grep match_pattern