Image of brown and gray seashells on gray sand.

Random Numbers and Strings in Bash

How to generate random numbers and strings in Bash shell and scripts.

May 16, 2007 · 2 min · Matt Bagley · Updated Aug 3, 2023

Read Variable Default Values into Bash

When using read to get a value from the user, it’s really nice to have a default that they can just hit enter to.

May 16, 2007 · 1 min · Matt Bagley · Updated Oct 5, 2016
Image of three kittens looking around and seeing what trouble they can explore.

Using cat in Bash to Show Contents of a File

Here’s an easy way to use cat in bash to show a file’s contents

May 16, 2007 · 2 min · Matt Bagley · Updated May 4, 2017