If statment
#!/bin/bash #> error and success are two files # error="No pages of output" # success="Output written on" if grep "No pages of output" error > /dev/null; then echo "We found 'No pages of output' in error" fi #> out puts the echo above if grep "written on" success > /dev/null; then echo "We found 'Output written on' in success" fi
[Click to add or edit comments])
Please prepend comments below including a date