sed not giving me correct substitute operation for newline with Mac – differences between GNU sed and BSD / OSX sed [duplicate]

With BSD/macOS sed, to use a newline in the replacement string of an s function call, you must use an \-escaped actual newline – escape sequence \n is not supported there (unlike in the regex part of the call). Either: simply insert an actual newline: sed -i ” ‘s/\\n/\ /g’ test1.txt Or: use an ANSI … Read more

How to install latest version of openssl Mac OS X El Capitan

Execute following commands: brew update brew install openssl echo ‘export PATH=”/usr/local/opt/openssl/bin:$PATH”‘ >> ~/.bash_profile source ~/.bash_profile You will have the latest version of openssl installed and accessible from cli (command line/terminal). Since the third command will add export path to .bash_profile, the newly installed version of openssl will be accessible across system restarts.

Homebrew refusing to link OpenSSL

This is what worked for me: brew update brew install openssl ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/ ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/ ln -s /usr/local/Cellar/openssl/1.0.2j/bin/openssl /usr/local/bin/openssl Thanks to @dorlandode on this thread https://github.com/Homebrew/brew/pull/597 NB: I only used this as a temporary fix until I could spend time correctly installing Openssl again from scratch. As I remember I spent … Read more

How to completely uninstall Android Studio on Mac?

Execute these commands in the terminal (excluding the lines with hashtags – they’re comments): # Deletes the Android Studio application # Note that this may be different depending on what you named the application as, or whether you downloaded the preview version rm -Rf /Applications/Android\ Studio.app # Delete All Android Studio related preferences # The … Read more

Macbook model suggestion

The latest pro model. I always choose to buy the latest pro model. Also, I recommend buying the largest hard drive you can afford, that might mean the 250gb. The reason I say the latest model is because it’s an investment for your career. Even if you don’t realize it, your computer will generally generate … Read more