Skip to content

Instantly share code, notes, and snippets.

@nicolasalarconrapela
Created January 22, 2019 09:22
Show Gist options
  • Select an option

  • Save nicolasalarconrapela/c701b33d1bdb8a9cc5d3afecb9a9d6b0 to your computer and use it in GitHub Desktop.

Select an option

Save nicolasalarconrapela/c701b33d1bdb8a9cc5d3afecb9a9d6b0 to your computer and use it in GitHub Desktop.

Bash test

A Repo for testing snippets of Bash code

Table of contents

  1. Getopts example
  2. test.sh

Getopts example

Usage:

▶ bash test.sh -a -b baz qux quux quuz
You passed baz to -b, -a is true, and then passed qux quux quuz after that

test.sh

This is a test script.

What is Lorem Ipsum?

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Why do we use it?

It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment