File processing question
Hi, I have a file in the format:
I want to print out this file with domain1.com domain2.com etc on a new line so I can do something like ./script >> domains.new
and have each domain on a separate line.
I've tried fiddling with awk, grep and perl to achieve this but my programming skills are lacking and can't seem to do it.
Can someone help?
not perfect, but it works
echo "*@firstname.lastname@example.orgemail@example.com" | tr --delete "@" | tr "*" "\n" > domains.new
You're a star! Thank you :)