Hello:
Been trying to develop a script with a list of user names from our Sun mailserver, with Solaris 10 and Postfix. I had the script collect all the home directories in /home then dump to a file and then did vi +:/%s/&/\@domain.com/g which works but then shell hangs and when I break out of the process vi is waiting for the :wq input. I've looked at sed, awk and cat as alternatives, is there another way to accomplish this? Once this file is generated I'll want to do an include: reference in /etc/postfix/aliases then restart Postfix to send out the email to all of our customers.
Thanks for any suggestions,
Phymen
Been trying to develop a script with a list of user names from our Sun mailserver, with Solaris 10 and Postfix. I had the script collect all the home directories in /home then dump to a file and then did vi +:/%s/&/\@domain.com/g which works but then shell hangs and when I break out of the process vi is waiting for the :wq input. I've looked at sed, awk and cat as alternatives, is there another way to accomplish this? Once this file is generated I'll want to do an include: reference in /etc/postfix/aliases then restart Postfix to send out the email to all of our customers.
Thanks for any suggestions,
Phymen