Get a list of domains

zomebodi

Verified User
Joined
Sep 3, 2023
Messages
61
I need a bash to get the list of domains from /etc/virtual/domains separated by :
example:
domain1.com:domain2.net:domain3.com

Its for exim config, any help will by appreciated
 
G'day zomebodi,

Code:
paste -sd ':' /etc/virtual/domains

Best regards,

LBJ
 
Last edited:
Back
Top