Birnendampf
Follow
A guy interested in Python and Bash scripts, forced to like Java.
I use Mint and MacOS, Windows if I have no choice
-
Student @ RWTH Aachen University
- Germany
-
05:36
(UTC +01:00) - https://linktr.ee/Pearsteam
- https://stackoverflow.com/users/20196684
Pinned Loading
-
usefule tools for bash scripting
usefule tools for bash scripting 1#!/bin/bash
2# String formatters
3# RGB tool allows you to enter three values on a range from 0 to 5 for red, green, and blue, which will be converted to an ANSI control sequence.
4# For more info, see here: https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit
5rgb() { printf "\033[1;38;5;$(( 16 + 36 * $1 + 6 * $2 + $3 ))m"; }
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.