Looking for a good way to remove the "@domain" of email addresses after an initial user prompt.
prompt = input("Enter the email address of the user: ")
All of the domains will be the same so I don't need to worry about sub domains or any other weirdness.
Input: john.doe@generic.com Output: john.doe
I'd like the output to go into another variable for use in a series of bash commands on a Linux server.