Use the following tools and steps for subdomain enumeration

Using GUI tools

Using CLI tools

For Removing duplicates from the file we can do the following steps