Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save saki007ster/d5cf808ce77c24d02ad7a70ca0863279 to your computer and use it in GitHub Desktop.
Save saki007ster/d5cf808ce77c24d02ad7a70ca0863279 to your computer and use it in GitHub Desktop.
bash art
#!/bin/bash
#Background Colors
E=$(tput sgr0); R=$(tput setab 1); G=$(tput setab 2); Y=$(tput setab 3);
B=$(tput setab 4); M=$(tput setab 5); C=$(tput setab 6); W=$(tput setab 7);
function e() { echo -e "$E"; }
function x() { echo -n "$E "; }
function r() { echo -n "$R "; }
function g() { echo -n "$G "; }
function y() { echo -n "$Y "; }
function b() { echo -n "$B "; }
function m() { echo -n "$M "; }
function c() { echo -n "$C "; }
function w() { echo -n "$W "; } #putpixels
function u() { h="$*";o=${h:0:1};v=${h:1}; for i in `seq $v` do $o; done } img="\ for n in $img
do u $n
done
e;
exit 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment