Answer the question
In order to leave comments, you need to log in
How to concatenate every 3 lines in Bash?
Good afternoon
There is a following task. There is a text file with a list of equipment in this format
host_name <hardware identifier in the system>
alias <hardware model>
address <"ip address">
And so it is repeated for each piece of iron. It is necessary to merge every three lines into one, but I'm still just learning bash scripts and I can't figure out how to do this, either somehow in cycles or through sed.
Thank you in advance for your help
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question