Use bash variables to store buffer contents