I am a vim user and can use some basic awk or bash commands. Now I have a text file (vcf) larger than 20G. I would like to move line # 69 to the line below # 66:
$less huge.vcf
...
66 ##contig=<ID=9,length=124595110>
67 ##contig=<ID=X,length=171031299>
68 ##contig=<ID=Y,length=91744698>
69 ##contig=<ID=MT,length=16299>
...
I wanted:
...
66 ##contig=<ID=9,length=124595110>
67 ##contig=<ID=MT,length=16299>
68 ##contig=<ID=X,length=171031299>
69 ##contig=<ID=Y,length=91744698>
...
I tried to open and edit it using vim (the LargeFile plugin is installed), but still does not work very well.
source
share