I have $dom which contains a domain name (i.e aaaa.com), the script needs to search for the line in the file above (called /etc/postfix/virtual) move down to the line below it and print $user\@$dom\t$user.aaaa.com VIRTUALDOMAIN bbbb.com VIRTUALDOMAIN cccc.com VIRTUALDOMAIN dddd.net VIRTUALDOMAIN
In reply to Basic Seek by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |