Download this file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
BEGIN { print "dna,binding," column_name } # Process background file (first file) FNR==NR { if (!/^>/) { gsub(/[[:space:]]/,"") if (length($0) > 0) { print $0 ",0," } } next } # Process foreground file (second file) !/^>/ { gsub(/[[:space:]]/,"") if (length($0) > 0) { print $0 ",1," column_value } }