Skip to content

Instantly share code, notes, and snippets.

@imran-parray
Last active June 22, 2024 05:13
Show Gist options
  • Save imran-parray/7ccc41552f923478ec7f3bbd21fa6f9e to your computer and use it in GitHub Desktop.
Save imran-parray/7ccc41552f923478ec7f3bbd21fa6f9e to your computer and use it in GitHub Desktop.
Seperate Subdomains as per their domains and make a seprate Txt file of each domain
while IFS= read -r line; do echo "$line" >> "$(echo "$line" | awk -F. '{print $(NF-1)"."$NF}').txt"; done < subdomains.txt
@imran-parray
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment