One of the fortunate things about posting in a "Dummies" forum is you probably aren't expecting a lot of out me...
I'm trying to pull fields from two lines in the same file(s), and then append them together in a new file.
So...I get a nice line-by-line of the first bit of data I'm looking for, by doing this:
Command:
awk '/hostname/ {print $3}' */*.cfg
Output:
host1
host2
host3
And I can get the other data like this (basically the same thing):
Command:
awk '/domain/ {print $3}' */*.cfg
Output:
va.domain.net
ga.domain.net
fl.domain.net
What I'd like to do is end up with a file that has:
Output:
host1.va.domain.net
host2.ga.domain.net
host3.fl.domain.net
I've searched and found various options, but my overall skills are fairly lacking, so I'm hoping so of you guys can help guide me. BTW...this is just one part of a script I'm attempting that will create a delimited file...so you might be hearing from me again!
Thanks!