The issue comes from the fact that the sed shipped with macOS is not the GNU sed, but rather a form of a BSD sed. Not all arguments as wellβ¦
Page 2 of 6
Articles
How to Fix "illegal option" When Using sed in macOS Sequoia
January 02, 2025