Skip to content

Instantly share code, notes, and snippets.

@themactep
Created January 18, 2024 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save themactep/69626e219a7b377e2e4880d2fd003b14 to your computer and use it in GitHub Desktop.
Save themactep/69626e219a7b377e2e4880d2fd003b14 to your computer and use it in GitHub Desktop.
ANSI color codes
#!/bin/bash
#
# ANSI color codes
# 2019 Paul Philippov <paul@themactep.com>
for k in {1..9}; do
for i in {0..9}; do
echo -en " \e[1;${k}${i}m$(printf "%02s" "${k}${i}")\e[0m"
done
echo
done
@themactep
Copy link
Author

ANSI-codes

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