Entering edit mode
9.6 years ago
jyu429
▴
120
Hi,
I have files with lines that look like
HSQ1008:141:D0CC8ACXX:3:1106:17255:124378 163 chr14
I'm wondering how I can output a file that appends /1 if the second column is 99 or 83 and a /2 if the second column is 163 or 147. Also I want to put \n + \n between each the second and third column, a \n after the first and last column, and an "@" in front of the very first column. So I would want the above line to become
@HSQ1008:141:D0CC8ACXX:3:1106:17255:124378/2
163
+
chr14
I appreciate any help!
Thanks! Just needed to take the commas out but this worked great!