|
|
|
|
|
by acqq
4463 days ago
|
|
You are right, the shortest awk is one byte. Please post the link all nine variants I wasn't able to Google it. Still the shortest Perl is 0 bytes when the command line switch is allowed to be -p Update: That's actually called "the sed mode of Perl." Moreover these two command lines behave similarly: perl -pe 's/search/replace/g'
and sed 's/search/replace/'
|
|
[1] http://robertkotcher.com/sed.html
[update] s/set/sed/