sh自动化脚本如何编写

有什么方法可以在脚本中取到Sub-page size 的2048 这个值并且作判断执行一条命令

```

mtdinfo /dev/mtd0

mtd0
Name: uboot
Type: nand
Eraseblock size: 131072 bytes, 128.0 KiB
Amount of eraseblocks: 8 (1048576 bytes, 1024.0 KiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 2048 bytes
OOB size: 256 bytes
Character device major/minor: 90:0
Bad blocks are allowed: true
Device is writable: true

```*

大哥 好好学学再出来问问题好吗?

greb 正则