sed it's also slightly different ... and any other command and tool that is more BSD style than GNU style.
So to be clear, macOS and Linux are both Unix, thus they are similar because of that ... but macOS is BSD based and Linux is GNU based, thus different.
If you look for the commands behaviour for BSD and their counterparts for GNU it will help a lot.
FUN FACT: Linux is just the kernel, the operating system is formally GNU/Linux but no one does that, or we should ? ... maybe "macBSD" and "linuxGNU" are better names ? ... no !!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
sed
it's also slightly different ... and any other command and tool that is more BSD style than GNU style.So to be clear, macOS and Linux are both Unix, thus they are similar because of that ... but macOS is BSD based and Linux is GNU based, thus different.
If you look for the commands behaviour for BSD and their counterparts for GNU it will help a lot.
FUN FACT: Linux is just the kernel, the operating system is formally GNU/Linux but no one does that, or we should ? ... maybe "macBSD" and "linuxGNU" are better names ? ... no !!