General FizzBuzz: Difference between revisions

m
→‎{{header|AWK}}: tweaks to output-format
m (→‎{{header|AWK}}: tweaks to output-format)
Line 51:
* the custom program is run, and does the actual work to output the desired result
 
;Input:
<lang bash>awk -f fizzbuzzGenerate.awk input.txt > fizzbuzzCustom.awk
awk -f fizzbuzzCustom.awk numbers.txt</lang>
 
;Input:
<pre>
105
Line 61 ⟶ 58:
7 Baxx
</pre>
 
<lang bash>awk -f fizzbuzzGenerate.awk input.txt > fizzbuzzCustom.awk
awk -f fizzbuzzCustom.awk numbers.txt</lang>
 
<!-- http://ideone.com/fACMfK -->
Line 87:
 
END {
print "!x==" q2 q2 " {print $01; next}"
print " {print " q2 "\\t " q2 ", x; x=" q2 q2 "}"
 
print "END {print "q2"# Done."q2"}"
print "# Done."
Anonymous user