Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to change FS to other value in awk script 1

Status
Not open for further replies.

macfoxx

Technical User
Jul 26, 2002
81
PL
Hi folks!
I try to extract some informations from sendmail log, but I have a problem.
This is the input file records:
Date Time MessageID1 person1@domain1.pl
Date Time MessageID2 person2@domain2.pl
Date Time MessageID3 person3@domain3.pl,person4@domain3.pl
Date Time MessageID4 person5@domain1.pl
Date Time MessageID5 person6@domain1.pl,person1@domain1.pl

I need to divied this lines that contains 2 or more email address in separate lines to get such output:
Date Time MessageID1 person1@domain1.pl
Date Time MessageID2 person2@domain2.pl
Date Time MessageID3 person3@domain3.pl
Date Time MessageID3 person4@domain3.pl
Date Time MessageID4 person5@domain1.pl
Date Time MessageID5 person6@domain1.pl
Date Time MessageID5 person1@domain1.pl

How I can make it in awk?
regards
Mac Foxx
 
You are the best feherke!!!
I try resolve this problem from yesterday.
Thanks
Mac Foxx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top