Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
CC4=`curl -Ls4 https://www.youtube.com/ | egrep -o "content-region\">([[:alpha:]]+)</" | cut -d \> -f 2 | cut -d \< -f 1`
CC6=`curl -Ls6 https://www.youtube.com/ | egrep -o "content-region\">([[:alpha:]]+)</" | cut -d \> -f 2 | cut -d \< -f 1`
if [ "$CC4" != "" ]; then
echo "IPv4: $CC4"
fi
if [ "$CC6" != "" ]; then