A
aixenv
i've been trying to figure out how to do this for about 30mins my perl
is very rusty and i've never been very good at text manipulation
basically here is the problem, i have a file that has on each line:
name: $emailusername
i need to from this long file (2.6mb) generate a list on each line of:
$emailusername@$mydomain.com
for example:
take
name: bobj
name: bobjo
to
(e-mail address removed)
(e-mail address removed)
the original file had lots of other data in it
the output looked like so
name: bobj
passwd: xxxxxxxxxencryptedxxxxxxxxx
clear passwd: cleartextpasswd
uid: 0
gid: 0
flags: 0
gecos: bobj
limits: No user limits set.
dir: /home/vpopmail/domains/mydomain.com/0/5/bobj
quota: 31457280S
usage: 0%
last auth: Sat Jul 16 03:05:39 2005
last auth ip: 1.2.3.4
i did the following command to generate the file i need parsed
cat vpopmail-users.txt |grep 'name' > vpopmail-names
i have tried various perl CLI commands to no avail
some help would be appreciated, i apologize for my lack of
understanding this concept
thank you
is very rusty and i've never been very good at text manipulation
basically here is the problem, i have a file that has on each line:
name: $emailusername
i need to from this long file (2.6mb) generate a list on each line of:
$emailusername@$mydomain.com
for example:
take
name: bobj
name: bobjo
to
(e-mail address removed)
(e-mail address removed)
the original file had lots of other data in it
the output looked like so
name: bobj
passwd: xxxxxxxxxencryptedxxxxxxxxx
clear passwd: cleartextpasswd
uid: 0
gid: 0
flags: 0
gecos: bobj
limits: No user limits set.
dir: /home/vpopmail/domains/mydomain.com/0/5/bobj
quota: 31457280S
usage: 0%
last auth: Sat Jul 16 03:05:39 2005
last auth ip: 1.2.3.4
i did the following command to generate the file i need parsed
cat vpopmail-users.txt |grep 'name' > vpopmail-names
i have tried various perl CLI commands to no avail
some help would be appreciated, i apologize for my lack of
understanding this concept
thank you