シェル芸のネタ

なんでこんなの思いついたんだろう。。
kanataほぼ8年前に追加

全てがFになる

C=$(tput cols);L=$(tput lines);while :;do x=$(($RANDOM%$C));y=$(($RANDOM%$L));printf "\033[${y};${x}fF";done

以下は実行途中、いずれ全てFになる。

FF FFFFFFFFFFFF FF FFF FF FFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFF FFF FF F FF FFFFFFFFFFFFFFFFFFFFFFFFFFF
FF  FFFFF FFFFF  FFFFFFF F FFFFFFFFFF F  FF FFFF  FF FFFF FFFFF F FF  FF FF  F  FFF  FF F FFF       F
FF  FFF  FFF FFFF F F  FFFFFF FFF F FFFF F F FF   FF FFFF  FFFF  FF FF F  F F FFF FFFFFFFF F FFFFFF F
FFFFFF FF F F  FF F FF F FFFFF  FFFFFFF  FFF FFFF FFFFFF  FFFFFFFFFFFFF FFFFFFFFFF F FFFF FF     FF
FF  FFF  FFF FF FF  FFF F    F FF  F  FFF FFFF FFFF FFFF FF FF F  FFFFFFFFF FFFFFFFFFFF  FFFFFF FF F
F FFF   FFF F    F FFFF     FFFF FF F  FFFF F FF  FFF F  F F F FFFF  FF FFF FFFF  F F FFFF   FFFF F
FFFF F FFFF FFFFFFF  FFFF FFF FF F F   FF FFFFFFF   FF F F  FF F F FFFFFFFFF FFFFFF FFFFF F  FFFF FFF
F    FFFFFFFF FFF FFFFFFFFFFFFFFFFFFFF F  F FF FFFFFFF   FF   FFFF  F FF FFFF FFFFFF FFFFFF F FFF   F
 FFF   FF  FF FFFF FFFFF   FFFF F  FF  FFFFF F F FFFFFFFFFFF  FFFF FF F  F  FF  FFF FF      F     F F
  F  F   FFFFF FF FFFFFF FFFFF F  F F   FF FF FFFFFFFF FFFFF FFF FFFFF F F FF  FFF   F F FF FFFFFFFF
F FFFFF F FF FFFFFFFF FFFFFFFFFFF   F FF FF   FF FFFFF FFFFFF FF FFF  FFF FFFFFF  F FFF  FFFFF  F FF
F FF FF F   FFF FF FFFFF FFF FFF   FF FFFFFFF  F FFF  FFF  FF FF FFF FFFFFFFF  FFF F FF F  FF FFF FFF
FFFF FFFFFFFFFF F  F  FFFFF   FF FF F FF FF F FFFFFFFFFFFF FFFFFFF FFFFF F  FF FFF  FFF FFF FF  FFFFF
FFFF   F FFFFFFFFFFFFFFFF   FFFFF  F    FF  FFF  FF FFFFFF F   FFFFFFFFF FFFF  FFFFFFF FF F FF FFFFFF
FFFFF F FFFFFFF  FFFFF    FFFFFFFF   FFFFF   FF FF FFFF FFF  FF F F FF   F   F  F  FFFF   FF F FFF FF
F F FFFFFFFFF   F  F  FFF F FF  FF  FFFFFFFFF FFFFF FFF FFF FFFFFFF FFFF FFFFFFFFFFF  F  FFFF F FFFFF
FFF  FF FF F FFFFFFFF FFFF FF F FFF FFF FFF FFFF   FFFFFFFFFFFF F F    FFFF  FFF     F FF FF F FFFFFF
FF   FFFFF FF FFFF FFFFF FF  FFFFF FFFF    FFFF FFFF F  F  FFFFFF FF FF F FF  FFFF FF FF FFFFFFF FFF
F    F   F F FFFFFFFF FF  F FF FFFFF  F FFFF  FFFF FF FFFFFF FFFFF F  FFFF FF F F F FFF FFFFFFFFF FFF
 FF   F FFFF FF F FFFF      FF FF FFF F FFFFFFFFFFFFFFF FFFFF FFF FFFFF  FFF   FFFFFFFFFFFFFFFFFFFFFF
FFF FFFFF   F  F   FF FFF F   FF FFFFF F FFFF F FFFFFFFFF FFFF FFFF FF  FFFFF FF F  F FFFFFFFF FF FFF
F F  FF F F FF FF F F FFF F   FFFFFF   FFFFFF  FF FFFFF FF FFFFFF FFF  FFFFFFFFFFFFFFFF  FFFF  FFFF F
FFF FFFF  FFFFFF FFFFFF FFF FF  F FFF FFFFFFFF  FFFFFF    FFF FFFFFFFFF FFF  FFFFF F F F    F F FFFF
F   F FF F F   F FFFFFFF FF F FFFFF F FF F  FF F  F FFFFFFF  F F FFF FFFFFF F FFFFFFF FFFFF FF FFF  F
FF FFF FFF FFF  FF FF  FFF  F FFFFF FF FF FF  FFFFFFF FFFF F FF FFFFFFFF F F F FFFFFF   FFFFFF FF FFF
F FF FFFF FFFFF  F FF   FFF   FF FFF FF F    FF FFF F FFFF FFFF F FFFFF F FF FF FFFF FFFFFFFF   FFF F
FF  FFF  FF FFF F  FFFFF  F FFF F FFF FF  FFFF F  FFF F  FFFF FFFF F FF FFFFFFF  FFFFFFF FFFF F FFF F
FF F FFFF F    FFFF FF FFFF FFF FFF FFFFFFF FF FFFFF^CFF FFF FFFFFFF  FFFFFFF FFFF FFFFFFFF F FFFFFF
 FF    FFF  FFF F FF  FF FF  F  FFFFF FFFFFFF F FF FFFFFF FFFFFF  FFF FFF FFF FFFFFFFFF FF  FFFF FFF
FF F FFFFFFF   F   F FF FF F FFFF  FFFFF FFFFFFFF   FFFFFFF  F   FFFFFF F F  FFF F FFFFFF FFF  FFFFFF

コクのある乱数で全てがFになる

C=$(tput cols);L=$(tput lines);while :;do x=$((($RANDOM%$C+$RANDOM%$C+$RANDOM%$C)/3));y=$((($RANDOM%$L+$RANDOM%$L+$RANDOM%$L)/3));printf "\033[${y};${x}fF";done
                                      FF  F       F              FF
            F              F                F FFFFF   F                F                 F
                  FF F      F   F    FF F     F       FF  F      FF F  F
                       FF  F   F  F F   FFFFF   F FF  F F    F F FF    F
         F   F       FF  FF   FFFFF FFF  F FF FFFF FFF    FFFFFF  FF      F FF  F F
              FF      F F FF F FFFFFF F F  FFFFFFFFFFFFFFFF  FFFF F FF   FFF    F     F
           F     F  F    F   FFFF^CFF FFFFFFFFFF FFF FFFFF F FF FFF F FFFF FFF     FF         F
           F     F  F FF F F  F FFFFF FFFFFFFFFFFFFFFFFFFFFFFF FF FFFFFFFF   F F FF        F
      FF    FF  F  F FFFFFF FFFFFF FFFFFFFFFFFFFFFFFFFFFF FFFFFFFFF F FFF FF FFF F  FF FF
      FF F      FF FFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFF FFFFF F  F  FFFF  F FF
          F    F F F FF FF FFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF  FFFFFF FF FF  FFF F
     FF  FF FFF F FF FF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFF
     F  F    F FFF F FFFFFFFF F FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF F FFFFFFF F  F F F FF  F
         FF    F FFFF  F F FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF F FFFFFF FF
      F      F F  FF FF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFF  F  F    F  F
  F  FFF   FFF FFFFF FFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF F F FFFFFF  F     F
       F FF   F  FFF FFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFF FF F FFFF F F   F
          F F FFF   FFF  F FFFFFFFFFF FFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFF FFFFF F FFF  FF  F
               FFF FF F FFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFF FFFFFFFFF F  F F    F  F    F
         F    F F  F F F FFFFFF FFFFFFFFFFFFFFF FFFFFFFFF FFFFFFFFFFFFFFFFF   F FFFFF F   F     F
       F  F FF  F  FFFFFFF FFFFF  F F FFFFFFFFFFFFF FFFFFFF FFFFF FFFFF F FF F FFF    F
          FF F FF F  FF FFFF FF  FF  FFFFFFFFF F FFF FFFFFFFFF F  FFFFFFF FF F  FF F F   F
         FF  F      F  F F FFFF F FFFF FF FFFFFFFFFFFFF FFF FFFFFFF  FFF FFFFF   FF       F
                  F    F FF  FFFFFFFFFFFFFF FFFFFF F    F F  FFFFFF    F    FF   F
                 F F F    F  F F  FFFFF F   F FF FF F F  F  F F FF F  F    FF              F
             F F      F        F F FF F    FF FFFFF   F FFFFFFF F   F FF      FF
                    F    F FF    F       F F    F FFFF       F        F
             F           F      F          F F     F  F     F     F           FF
                                           F          F



コクのある乱数とは

togetter - 乱数にコクを出す方法について
http://togetter.com/li/1044668

クリスマスも近いし、ターミナルぐらいは愛で満たそうかと思ったら狂気しかなかった

C=$(tput cols);L=$(tput lines);while :;do x=$(($RANDOM%$C));y=$(($RANDOM%$L));printf "\033[${y};${x}f愛";done

コメント

クリップボードから画像を追加 (サイズの上限: 100 MB)