Skip to main content
6 events
when toggle format what by license comment
Apr 7, 2017 at 8:47 history edited Stéphane Chazelas CC BY-SA 3.0
added 165 characters in body
Apr 7, 2017 at 8:43 vote accept gugy
Apr 7, 2017 at 8:25 vote accept gugy
Apr 7, 2017 at 8:25
Apr 6, 2017 at 19:17 comment added hschou It is best if you change the original question. Show exactly what the input and the output is and then someone would come with a solution. I'm not a sed expert but this one should do it: cat file | sed -n -e '/>scaffold_2/,$p' | grep -v '^>' | cut -zc 10-80 but I think grep could be avoided with the right sed option. (this cut-thing is good).
Apr 6, 2017 at 13:19 comment added gugy I like this solution! can it be modified to only start counting after the occurence of >scaffold_2 ? the current answer ignores the lines starting with >, but counts from the beginning of the file, if I understand correctly?
Apr 6, 2017 at 12:43 history answered hschou CC BY-SA 3.0