Skip to content

shell / random Cheat Sheet

wget - ΠΏΡ€ΠΎΠ²Π΅Ρ€ΠΊΠ° status code

statusCode=$(wget -qSO- --spider localhost:8000 2>&1)
echo $statusCode | grep "200 OK"

Comments