⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ascii.sh

📁 Shall高级编程
💻 SH
字号:
#!/bin/bash# ascii.sh# Script by Sebastian Arming.# Lightly modified by ABS Guide author.# Used with permission (thanks!).exec >ASCII.txt         #  Save stdout to file,                        #+ as in the example scripts                        #+ reassign-stdout.sh and upperconv.sh.MAXNUM=256COLUMNS=5OCT=8OCTSQU=64LITTLESPACE=-3BIGSPACE=-5i=1 # Decimal countero=1 # Octal counterwhile [ "$i" -lt "$MAXNUM" ]; do        paddi="    $i"        echo -n "${paddi: $BIGSPACE}  "    # Column spacing.        paddo="00$o"        echo -ne "\\${paddo: $LITTLESPACE}"        echo -n "     "        if (( i % $COLUMNS == 0)); then    # New line.           echo        fi        ((i++, o++))        # The octal notation for 8 is 10 and 80 -> 100.        (( i % $OCT == 0))    && ((o+=2))        (( i % $OCTSQU == 0)) && ((o+=20))        # We don't have to count past 0777.doneexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -