I have the file that look like that:
t_#_3_0 v_0_17 v_1_20 v_2_78 u_0_1 u_0_2 u_1_2
t_#_3_1 v_0_144 v_1_17 v_2_20 u_0_1 u_0_2 u_1_2
t_#_3_2 v_0_143 v_1_233 v_2_238 u_0_1 u_0_2 u_1_2
t_#_3_3 v_0_20 v_1_253 v_2_275 u_0_1 u_0_2 u_1_2
t_#_3_4 v_0_144 v_1_209 v_2_90 u_0_1 u_0_2 u_1_2
t_#_3_5 v_0_144 v_1_209 v_2_30 u_0_1 u_0_2 u_1_2
t_#_3_6 v_0_19 v_1_20 v_2_78 u_0_1 u_0_2 u_1_2
t_#_3_7 v_0_20 v_1_7 v_2_78 u_0_1 u_0_2 u_1_2
t_#_3_8 v_0_16 v_1_20 v_2_78 u_0_1 u_0_2 u_1_2
t_#_3_9 v_0_15 v_1_20 v_2_78 u_0_1 u_0_2 u_1_2
I would like to split it line by line and keep the first string as headers for my new files. My desired output should look like that.
file 1: t_#_3_0.txt (inside located line - t_#_3_0 v_0_17 v_1_20 v_2_78 u_0_1 u_0_2 u_1_2)
file 2: t_#_3_1.txt
file 3: t_#_3_2.txt
I tried split command, but it results in numerical indexes for output files.
I would appreciate your suggestions!
Thank you!
Olha