Flagging exits in Bash Script
Sorry for the weird title, I didn't know what to call this. I wrote a large bash script where a lot of software gets installed automatically. I've put '&&' at the end of every line which its feasible to do so in order to stop the script once errors occur. Is it possible to output the line number of the script that it exited at? If not, is there anyway to flag the script so I can see where it exited?