Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.18 KB

README.md

File metadata and controls

24 lines (19 loc) · 1.18 KB

bash-scripts

A collection of simple bash scripts.

Basic

  1. Hello, world!: It simply prints "Hello, world!" in the terminal
  2. Greetings, user!: A script that greets the user
  3. Simple calculator: A simple calculator of two numbers
  4. Count to 100!: The console will count from 1 to 100 for you
  5. Uppercase, lowercase...: The script will teach you how to change a string to uppercase, lowercase and capitalize it

Functions

  1. What day is today?: It prints which day of the week is today
  2. Square a number: A simple function that squares an integer

$RANDOM

  1. Random number: It outputs a random number from 1 to 1000
  2. Guess number: User should guess a number from 1 to 100

Reading files

  1. File reader: The script prints the file content line-by-line
  2. Multiple files reader: Prints the content of all files given by arguments