Thanks. It worked.
• 0 views
•
link
Here is my data with A, B, C and D columns in my bed file.
A. B. C. D.
Chr 1. 1. 12. +
Chr 2. 24. 56. +
How can I move my D column to position 1 where the Column A right now?
Assuming a tab delimited file:
awk -F '\t' {'print $4"\t"$1"\t"$2"\t"$3'} data.tsv
D. A. B. C.
+ Chr 1. 1. 12.
+ Chr 2. 24. 56.
Log in to answer this question.