Skip to content

Instantly share code, notes, and snippets.

View annahri's full-sized avatar

Muhammad Ahfas An Nahri annahri

View GitHub Profile
@hfossli
hfossli / standard.sh
Last active September 19, 2024 05:27
Standard bash script format
#!/bin/bash
CLEAR='\033[0m'
RED='\033[0;31m'
function usage() {
if [ -n "$1" ]; then
echo -e "${RED}👉 $1${CLEAR}\n";
fi
echo "Usage: $0 [-n number-of-people] [-s section-id] [-c cache-file]"