for i in {97..122}; do ls /dev/sd$(printf \\"$(printf %03o "$[i+1]")"); done
[root@bogon ~]# for i in {97..122}; do ls /dev/sd$(printf \"$(printf %03o "$[i+1]")"); done
/dev/sdb
/dev/sdc
/dev/sdd
/dev/sde
/dev/sdf
/dev/sdg
/dev/sdh
/dev/sdi
/dev/sdj
/dev/sdk
/dev/sdl
/dev/sdm
/dev/sdn
/dev/sdo
/dev/sdp
/dev/sdq
/dev/sdr
/dev/sds
ls: cannot access '/dev/sdt': No such file or directory
ls: cannot access '/dev/sdu': No such file or directory
ls: cannot access '/dev/sdv': No such file or directory
ls: cannot access '/dev/sdw': No such file or directory
ls: cannot access '/dev/sdx': No such file or directory
ls: cannot access '/dev/sdy': No such file or directory
ls: cannot access '/dev/sdz': No such file or directory
ls: cannot access '/dev/sd{': No such file or directory
参考:
https://unix.stackexchange.com/questions/15139/how-to-print-all-printable-ascii-chars-in-cli