LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 729|回复: 0

菜鸟提问

[复制链接]
发表于 2007-7-24 11:01:59 | 显示全部楼层 |阅读模式
# A Perforce Label Specification.
#
#  Label:       The label name.
#  Update:      The date this specification was last modified.
#  Access:      The date of the last 'labelsync' on this label.
#  Owner:       The user who created this label.
#  Description: A short description of the label (optional).
#  Options:     Label update options: locked or unlocked.
#  Revision:    Optional revision specification to make an automatic label.
#  View:        Lines to select depot files for the label.
#
# Use 'p4 help label' to see more about label views.

Label:  tseet44

Update: 2007/07/24 10:36:48

Access: 2007/05/18 17:11:27

Owner:  perforce

Description:
        Created by perforce.

Options:        unlocked

View:
        //sample/...
想通过sed讲上面的Options:        unlocked这行[中间的一个或多个空格不会匹配啊]。替换成Options: locked
sed 's/^Options: *unlocked/Options: locked/g'
这句话不好用啊
谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表