有一天,我输入了命令
echo "\033[32mHELLOBASE\033[m"
Run Code Online (Sandbox Code Playgroud)
在gnome bash shell中.终端给我看了一个绿色的HELLOBASH字符串.我觉得这很有意思.根据我的经验和一些测试,我可以将数字32从0更改为47.接下来我编写了以下代码,
for i in {0..48};do
echo \033[$imHELLOBASH\[033m
done
Run Code Online (Sandbox Code Playgroud)
当然,它不起作用,或者我不能在这里!那么如何改进上面的代码才能运行?
bash ×1