Finding changepoints in a list, revisited

Use a simple AWK command to locate the places in a list where the value of a data item suddenly changes.

Source: LXer