cat mobile_errors.txt.txt | grep -o -P '(?<=returned for booking ).*(?= with error code)' | sort | uniq > mobile_error_bookings.txt
The magic of this search is here:
grep -o -P '(?<=beginning string with space at end ).*(?= ending string with space at start of it)
