nixCraft Linux / UNIX Newsletter

Link to [RSS/Feed] nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format

How to install Homebrew on macOS to use the brew package manager

Posted: 22 Jan 2021 03:43 AM PST

Homebrew is an essential package manager for developers, sysadmins, and power users on macOS. Homebrew allows us to install the latest and updated version of popular applications, packages, and developer tools. Homebrew is the painless way to install required packages on your Mac. For instance, we can install PostgreSQL, Python, PHP, Bash, Nginx, Apache, and much more using brew command. This page explains how to install and use Homebrew on the macOS system to get missing packages. Homebrew installs the apps you need that Apple didn't include in their base operating system or app store.

The post How to install Homebrew on macOS to use the brew package manager appeared first on nixCraft.

How to force awk not to print a newline

Posted: 21 Jan 2021 11:35 PM PST

I have two columns (fields) in my text file. I am trying to insert '|
FOO This is a description
BAR Another description for bar
TEXT Another description for TEXT

So I ran awk '{ print $1 "|"; $1=""; print}' input > output but print command is adding a new line:
FOO|
This is a description
BAR|
Another description for bar
TEXT|
Another description for TEXT

Is there any way to tell awk not to print a newline and create the file? Here is what I want so that I can create final HTML table based upon '|'
FOO|This is a description
BAR|Another description for bar
TEXT|Another description for TEXT

The post How to force awk not to print a newline appeared first on nixCraft.

How To - Linux List Disk Partitions Command

Posted: 21 Jan 2021 09:43 PM PST


{Updated} How do I list all hard disk partitions under a Linux operating systems using the CLI and GUI tools?

The post How To - Linux List Disk Partitions Command appeared first on nixCraft.