fork download
  1. #!/bin/bash
  2. s='chr1 1000
  3. chr6 24000000
  4. chr6 26000000
  5. chr6 27000000
  6. chr6 40000000
  7. chr7 100000'
  8. awk '!($1 == "chr6" && $2 > 25000000 && $2 < 33500000)' <<< "$s"
Success #stdin #stdout 0.01s 5528KB
stdin
Standard input is empty
stdout
chr1 1000
chr6 24000000
chr6 40000000
chr7 100000