Article 579XJ How can I tell if one of the commands between pipes gave an error?

How can I tell if one of the commands between pipes gave an error?

by
cesarsj
from LinuxQuestions.org on (#579XJ)
How would I know if at least grep, or all commands that result in FD, were successfully executed?

FD=$(grep "Number of regular files transferred:" $TMP | sed 's/[^0-9]*//g' | awk 'NF{sum+=$1} END {print sum}');latest?d=yIl2AUoC8zA latest?i=QUXJTVpHkQY:HWZCUs2r_eI:F7zBnMy latest?i=QUXJTVpHkQY:HWZCUs2r_eI:V_sGLiP latest?d=qj6IDK7rITs latest?i=QUXJTVpHkQY:HWZCUs2r_eI:gIN9vFwQUXJTVpHkQY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments