标签:
生成序列:
法1:
[root@lanny ~]# seq 10 |sed ‘s#^#$#g‘|tr "\n" " "
$1 $2 $3 $4 $5 $6 $7 $8 $9 $10
法2:
[root@lanny ~]# seq -s " " 15|sed ‘s# # $#g‘
1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 #注两位要用括号扩起来.
文本:
[root@lanny day2]# cat q.sh
echo $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15
执行:
[root@lanny day2]# sh q.sh {a..z}
a b c d e f g h i a0 a1 a2 a3 a4 a5
标签:
原文地址:http://www.cnblogs.com/iiiiher/p/5525264.html