busybox bash/ash - bash -x | grep
Posted on 2016-08-29
On busybox, I often use bash -x to debug scripts, watching them as they run but a problem is the information flies by very quickly, easily missed.
I need to run bash -x while watching for certain conditions, kind of like if you'd use grep to see some specific output.
Wondering if anyone might know of a trick, a tip, a way of running bash -x while being able to grep certain lines based on a key word, and not have the rest of the output being displayed.
Probably a long shot uh?