#!/bin/bash all_output="$(curl -isS https://www.spidersge.org/)" status=$(echo "$all_output" | grep -Po '\s[0-9]{3}\s' | head -n1 | tr -dc 0-9) echo "Status is [$status]" body="$(echo "$all_output" | sed -ne $'/^\r$/,$p' | tail -n+2)" echo "Body is [$body]"