Entering edit mode
7.1 years ago
mittu1602
▴
200
Hello, My main file looks like this:
main_file.txt
SNP_name 808727238578_A 808727238578_B 808727238578_C
10:100179863 GG GG GG -
10:100210988 AA AA AA -
10:103572804 AA AA AA -
10:1081944 CC CC CC -
10:110158432 AA AA AA -
10:114078559 GG GG GG -
10:115250272 GG GG GG -
10:11743758 AA AA AA -
10:118437858 GG GG GG -
I want to save files according to their column headers as shown below:
808727238578_A.txt
SNP_name 808727238578_A
10:100179863 GG
10:100210988 AA
10:103572804 AA
10:1081944 CC
10:110158432 AA
10:114078559 GG
10:115250272 GG
10:11743758 AA
10:118437858 GG
808727238578_B.txt
SNP_name 808727238578_B
10:100179863 GG
10:100210988 AA
10:103572804 AA
10:1081944 CC
10:110158432 AA
10:114078559 GG
10:115250272 GG
10:11743758 AA
10:118437858 GG
THANK YOU.
Thanks it worked very fine. :)
does it need any alterations while running through shell script? because it shows errors :(