I have file1 whose content is like this :The 6 columns are obtained from 6 different hosts before presenting them using -exec cp command. This is just FYI.Now, I have a list of 6 hostnames (file2) which I want to add as 1st row to file1.Content of file2 is given below.HOST1 HOST2 HOST3 HOST4 HOST5 HOST6 I need the final output like this.I am able to add a column but not a row. 
add a row from a file into another file as row
text processing