Here I want your files to help change the text file.
I want to change the text in the file (millions of columns, tab delimiter) - delete all tabs except the first, and add new columns for the last column.
file (4 columns here, but millions of columns in my real file, tab-bounded) I have:
day1 1 3 7
day7 2 4 8
day3 2 5 6
the file I want is to remove the delimiter (from the second) and add three new columns (one is the same as the first, two others with the same value in the whole one column, here x and y).
day1 137 day1 x y
day7 248 day7 x y
day3 256 day3 x y
I intend to do this with awk mixed with sed. But, I tried many different ways, I still don’t know how to do it.
could you help me? Thanks in advance.
,