The leading comma seemed like a good idea to namespace my commands but in practice in turned out to just be annoying and not provide any real benefits. So down with the comma...
11 lines
215 B
Bash
Executable file
11 lines
215 B
Bash
Executable file
#!/bin/sh
|
|
# Print all 256 colors
|
|
|
|
for i in $(seq 0 15); do
|
|
for j in $(seq 0 15); do
|
|
n=$(( 16 * i + j ))
|
|
printf '%s %3d ' "$(tput setab $n)" "$n"
|
|
done
|
|
printf '%s\n' "$(tput sgr0)"
|
|
done
|
|
|