helpful bash function for linux