bash shell to generate history record