Shell script implementation.