Last active
April 6, 2018 15:01
-
-
Save vidboda/b70c57c7dfe58d4abaed367574bd4f01 to your computer and use it in GitHub Desktop.
awk to convert bed file to position intervals file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN {OFS=""} {if ($1 !~ /track/) {print $1,":",$2+1,"-",$3}} | |
#one-liner: | |
#awk 'BEGIN {OFS=""} {if ($1 !~ /track/) {print $1,":",$2+1,"-",$3}}' file.bed > file.list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment