Get the latest tech news

Today I learned that bash has hashmaps (2024)


Xe Iaso's personal website.

Served by xesite v4 (/app/xesite) with site version e84fe911, source code available here. Hashmaps (associative arrays) are a great way to store a bag of key-value data. I wanted to store a mapping of GPU kind to region name and for some reason I thought it would be a good idea to do it in bash.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Today

Today

Photo of Bash

Bash

Photo of hashmaps

hashmaps

Related news:

News photo

Apple Announced the MacBook Pro 19 Years Ago Today

News photo

Steve Jobs Announced the iPhone and Apple TV 18 Years Ago Today

News photo

McDonalds launches Sonic 3 themed Happy Meals in the UK