Printing lines with sliding windows in bash

Printing lines with sliding windows in bash

This is originally from the work that I was trying to find enriched functional clusters on chromosomes. I made 5-gene sliding 50-gene blocks and tested functional enrichment in each block.