Extract CSV column bash

Print out the contents of only any single column in a CSV file with bash and awk. Simply change ‘$2’ to the column you want to extract.


Install jq on mac Homebrew: brew install jq https://formulae.brew.sh/formula/jq MacPorts: port install jq jq examples Below are a collection of jq examples that I use and might be useful for other people who come across them. jq count If you want to use jq to count the number of arrays you can us length In the below example the output would be 4 You could also use it with curl and pipe.

Extract URL Slug

For example, if you are using a domain name with a path example.com/blog/slug-page-title this will leave you with only slug-page-title

Install Elasticsearch Ubuntu

Elasticsearch is an open-source distributed search engine, RESTful search and analytics engine capable of solving nearly any type of application’s requirements. It allows developers to easily build powerful full-text search applications that can scale as their organizations grow. It is used for full-text search, analytics, machine learning, and real-time data processing. Elasticsearch has become one of the most popular NoSQL databases. In this tutorial, we will learn how to install Elasticsearch on ubuntu. The package can be found on the …

Learn More

Bash Remove Duplicate Lines

This is a Linux command that will remove the duplicate lines in a file without changing the original file. Please note that this command will not remove the duplicate lines from the file but only remove the duplicate lines in the output of the command. So you can also save the output in the file. You can use the following simple command from the Linux terminal to remove duplicate lines from any text file.

Json 2 Csv

json2csv github JSON2CSV is an open source project that allows you to easily convert JSON data into CSV files. It’s a simple tool that makes converting JSON data into CSV files much easier. If you’re looking to convert JSON data into CSV format, then you’ve come to the right place. In this tutorial, I’ll walk you through how to use JSON2CSV to convert JSON data into a CSV file. JSON 2 CSV NPM json2csv command line: You can install json2csv …

Learn More

Company Name To Domain

Convert JSON to CSV If you want to learn more about JSON 2 CSV converter read the post here.

Bash Create Directory

If you are looking for a quick way to create new folders A-Z or even 1-1000 you can use the following two examples. To use numbers just replace {A..Z} with {1..100} Open up terminal cd into the directory you want to create the directories in Run the below command If for some reason you wanted to use a for loop in a script you can use the following