http://fortune.com/2015/06/04/union-pacific-railroad/
The problem with trains is the last mile: you obviously can't drive them to every store etc that needs a delivery. But the process of loading and unloading containers from ships to trains (and trucks) at ports is getting more and more automated as well.