Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "#include <stdio.h>"
- echo "#define CLEAR \"\033[0m\""
- for i in `seq 10 99`
- do
- echo -e "#define CLR"$i "\"\\\033[0;"$i"m\""
- done
- echo "int main(){"
- echo
- for i in `seq 10 99`
- do
- echo "printf(CLR$i);"
- echo -e "printf(\"%d\","$i"); "
- echo "printf(\"\n\");"
- done
- echo
- echo " printf(CLEAR);"
- echo " return 0;"
- echo " }"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement