Can you do this with an `inreplace` or patch?