I just opened a file and found what looked like a bunch of garbage at the beginning and ending of each line:
^[[35m^[[KsampleA.trimmed.count.20_to_30.not_in_ref.MULTI_in_sample.sam^[[m^[[K^[[36m^[[K:^[[m^[[K7 ^[[35m^[[KsampleA.trimmed.count.20_to_30.not_in_ref.in_sample.sam^[[m^[[K^[[36m^[[K:^[[m^[[K4 ...
I was wondering if Vim was in some funny UTF-8 mode or something.
This file was simply created using
grep on Linux:
grep -c 'NM:i:0' *.sam > grep_example.txt
They look fine with
But it has all these funny characters when using