#!/bin/sh password() { tr -d '\n' < /dev/urandom | fold -w30 | head -n1 } password_easy() { tr -cd '[:alnum:]' < /dev/urandom | fold -w20 | head -n1 } case $1 in password) password;; *) printf "Invalid argument";; esac