Making getListing() more general by accepting a string to grep the result with