Use tail instead of sed