A shunt in general is a sort of relief valve, or diverter. See:
See also: shunter (railway locomotive)
In railway operations, "shunting" involves the process of sorting items of rolling stock into complete train sets or consists. The American equivalent is "switching". See: