Chinaunix首页 | 论坛 | 博客
  • 博客访问: 182552
  • 博文数量: 42
  • 博客积分: 2235
  • 博客等级: 大尉
  • 技术积分: 460
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-15 20:17
文章分类

全部博文(42)

文章存档

2012年(1)

2011年(7)

2010年(33)

2009年(1)

我的朋友

分类:

2010-02-09 20:58:34

concat ---- 将列表连接起来

语法:
concat ?arg arg ...?

该命令将在截除参数起始的空格和结尾的空格,并以空格来隔离并连接各参数。如果所有的参数都是列表,则将被合并为一个列表

Although concat will concatenate lists (so the command:

concat a b {c d e} {f {g h}}

will return "a b c d e f {g h}" as its result), it will also concatenate things that are not lists, and hence the command:

concat " a b {c   " d "  e} f"

will return "a b {c d e} f" as its result.

Note that the concatenation does not remove spaces from the middle of its arguments, so the command:

concat "a   b   c" { d e f }

will return "a b c d e f" (i.e. with three spaces between the a, the b and the c). 
阅读(1322) | 评论(0) | 转发(0) |
0

上一篇:string命令

下一篇:append命令

给主人留下些什么吧!~~