Let's #JustAssume for #OneMoment that there's #NoMaliciousIntent and #Accept that #InternationalJazzDay might be a #Thing...

#IF / #Not, #Then...

#SecurityMeasures are #InPlace...

We're #VeryForwardPlanning...

🧙⚔️🤖​🤖⚔️🧙 | ​🦹​​🦄​​🦹

#Meanwhile...

As the #RacistHomophobes at #SSG don't seem to have #AnyCompetence or #AppropriateSafeguarding #Measures #InPlace for "their" #PEGI12-#Game; #IT's #PerhapsWorth #BearingInMind #QuiteHowMany... #Opportunities "they/them" have been #Given to #Comply with #EULaw and yet, "they/them" have #StillFailed...

#YouKnow... While we're #StillWaiting for the #RacistHomophobes at #SSG to #Comply with #EULaw...

🧙​🤖🐺🤖​🧙 | 💀​​🦹🧟​🦄​​​​🧟​🦹💀

Linux 上的 GNU sed 與 macOS 內的 sed 的 in-place 差異

結論:用 Perl。

寫 shell script 的時候遇到的問題,在 Linux 上面使用 sed 換檔案裡面的字串,但不想要產生 backup file 的方式是:

sed -i -e 's/foo/bar/' example.txt

但在 macOS 內建的 sed 則是

https://blog.gslin.org/archives/2024/06/19/11855/linux-%e4%b8%8a%e7%9a%84-gnu-sed-%e8%88%87-macos-%e5%85%a7%e7%9a%84-sed-%e7%9a%84-in-place-%e5%b7%ae%e7%95%b0/

#Computer #MacOS #Murmuring #OS #Programming #Software #devops #gnu #inplace #linux #macos #perl #replacement #sed

Linux 上的 GNU sed 與 macOS 內的 sed 的 in-place 差異

結論:用 Perl。 寫 shell script 的時候遇到的問題,在 Linux 上面使用 sed 換檔案裡面的字串,但不想要產生 backup file 的方式是: sed -i -e 's/foo/bar/' example.txt 但在 macOS 內建的 sed 則是: sed -i '' -e 's/foo/bar/' example.

Gea-Suan Lin's BLOG