Simply, when i have tool "pdftotext", "sed" or "wget" and if this tool make an error in converting or downloading or something, I want to terminate my script...something like:
if [ pdftotext throws error/exception ]; then
exit 1
fi
bud I dont know how..can you help guys?