4 ms·
Or you can underthink it. It's side-effect free, takes no arguments, and is terminating, so it can be optimized perfectly for speed: #!/bin/cat 1
by Deestan 9y ago
Or you can underthink it. It's side-effect free, takes no arguments, and is terminating, so it can be optimized perfectly for speed:
#!/bin/cat
1
2
fizz
4
buzz
6
…
98
fizz
buzz
- philh 9y agoThat prints #!/bin/cat at the beginning, though. If I can return to overthinking it, you could use a silly tool[1] I wrote ages ago and do something like (untested) #! /usr/bin/cmd tail -n +2 1 2 fizz ... [1] http://reasonableapproximation.net/2010/07/27/silly-things-to-do-with-shebang-lines.html http://reasonableapproximation.net/2010/07/27/silly-things-t...