小编Elm*_*ao_的帖子

测试一个变量在 bash 脚本中是否有超过 4 位的数字

我想测试一个变量是否有超过 4 位这样的数字

#!/bin/bash
if [ $input has more than 4 digits ]; then 
     echo "  * Please only 4 digits" >&2
     echo""
else
   the other option
fi
Run Code Online (Sandbox Code Playgroud)

bash shell-script

2
推荐指数
3
解决办法
229
查看次数

更改 Linux Mint 20.1 中操作系统的名称

我想更改操作系统的名称,因此在 grub 菜单中它只显示 Linux mint 而不是 Linux Mint xfce 20.1,以使其尽可能干净 我在哪里可以更改名称?

grub linux-mint

1
推荐指数
1
解决办法
731
查看次数

标签 统计

bash ×1

grub ×1

linux-mint ×1

shell-script ×1