Hello.
I'm learning how to edit text with shell scripting, and I need to change the format of this:
> chr1 204073115 204127743
> chr6 31164337 31170682
> chr17 42313412 42388540
I want to change it to this:
chr1-204073115:204127743
chr6-31164337:31170682
chr17:42313412-42388540
I have no clue how to do it. I've tried using the command tr
, but the results are not what I expected for now. Any ideas?
Thank you
are you converting BED to intervals ? see also: Cheat Sheet For One-Based Vs Zero-Based Coordinate Systems