bash program for last login details