{} 花括号

[root@hexingxing ~]# echo {0..10}
0 1 2 3 4 5 6 7 8 9 10

[root@hexingxing ~]# echo {0..90}
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

[root@hexingxing ~]# echo {a..z}
a b c d e f g h i j k l m n o p q r s t u v w x y z

[root@hexingxing ~]# echo {A..X}
A B C D E F G H I J K L M N O P Q R S T U V W X

[root@hexingxing ~]# echo {a..z..2}
a c e g i k m o q s u w y

[root@hexingxing ~]# echo {a..z..3}
a d g j m p s v y

[root@hexingxing ~]# echo a{a..z}
aa ab ac ad ae af ag ah ai aj ak al am an ao ap aq ar as at au av aw ax ay az

[root@hexingxing ~]# echo b{a..z}
ba bb bc bd be bf bg bh bi bj bk bl bm bn bo bp bq br bs bt bu bv bw bx by bz

[root@hexingxing ~]# echo {a..z} | cut -c 15

[root@hexingxing ~]# echo {a..z} | cut -c 15,21
hk

0 条评论

昵称

沙发空缺中,还不快抢~