Skip to content

Instantly share code, notes, and snippets.

@remonsec
Created March 10, 2021 21:11
Show Gist options
  • Save remonsec/c144b31604d5687f1430747f9203c005 to your computer and use it in GitHub Desktop.
Save remonsec/c144b31604d5687f1430747f9203c005 to your computer and use it in GitHub Desktop.
filter subdomain 3rd level domain and so and so on
for i in $(cat scope.txt);do echo $i | tr -cd . | wc -c > word.txt; [[ $(cat word.txt) -le 1 ]] && echo $i;done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment