sed -i '' 'N; s/\n  /, /' pets.txt