Hacker News new | ask | show | jobs
by 1vuio0pswjnm7 1509 days ago
Missing semicolon.

  sed -n 's/old/new/;w file.tmp' file
Unlike BSD and GNU sed, it appears that Plan9 sed will append to instead of overwite file.tmp

It also requires a space after the w command.