4 ms·
SED is shorter (0 byte). SED /is/ a turing complete language [1] so don't try to claim that I'm cheating. sed < input > output :) [1] http://robertkotche
by dvdkhlng 13y ago
SED is shorter (0 byte). SED /is/ a turing complete language [1] so don't try to claim that I'm cheating.
sed < input > output
:)
[1] http://robertkotcher.com/sed.html http://robertkotcher.com/sed.html
[update] s/set/sed/
- deleted 13y ago[deleted]
- acqq 13y agoThe command line equivalent, with Perl: perl -pe '' <input >output
- Alphasite_ 13y agoEven java can do that setOut(system.in); (iirc)
- dvdkhlng 13y ago> Even java can do that setOut(system.in); I was referring to an empty SED-program that would then be run via 'sed -f empty-file.sed'. Of course you need >0 bytes to invoke the SED program.