I have rows and columns preceded by an introduction that I do not need. There are no headers for the columns. The data in my current file looks something like this (IP Addresses are fake):
This is a totally extraneous introduction and does not have anything to do with the data. It is here as a facsimile of what the output file looks like.
df bank.com 10.10.10.1
sdfdg store.com 10.10.10.2
s church.com 10.10.10.3
I need to skip past the introduction, paste in the extracted data to look like this below (derived from field two above), and put it all into a new .txt
file. The strings do not need quotes:
bank.com,store.com,church.com
Any advice on how to do this in Bash?
I tried using this following technique, but it only grabbed the first line of the introduction, and did not go through each row.