how to seperate names using awk
1
0
Entering edit mode
7 weeks ago
szp770 ▴ 10

I have a file like this:

"""

qboundary.0|hg19|chr10:1080001-1280001

boundary.2|hg19|chr10:3040001-3240001

boundary.4|hg19|chr10:4760001-4960001

"""

how to quickly use awk to make it look like this(seperated by TAB):

"""

chr10 1080001 1280001

chr10 3040001 3240001

chr10 4760001 4960001

"""

linux awk shell • 253 views
ADD COMMENT
0
Entering edit mode

This Google search might help you.

ADD REPLY
0
Entering edit mode

Thank you so much!

ADD REPLY
2
Entering edit mode
7 weeks ago
GenoMax 107k
$ awk -F '\\||:|-' '{OFS="\t"}{print $3,$4,$5}' your_file
chr10   1080001 1280001
chr10   3040001 3240001
chr10   4760001 4960001
ADD COMMENT
0
Entering edit mode

Thank you so much!

ADD REPLY

Login before adding your answer.

Traffic: 2190 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6