由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - perl matching problem
相关主题
Chinese Characterhelp with reading a strange csv file into SAS
awk questionBig Chnages in Obama's Asia Team
Simple Question求助:签证到期,2019表到期,请问该如何转签证留美国?
question about vi中文名字/美国名字请教
regex: what does [^ ] mean?AMERICAN NAME OR CHINESE NAME
unix shell help?苹果就是在吃教主时代的老本而已
can not make payment to finish the E72 orderWanna discuss "autonomic computing"?
次序颠倒了怎么说?BA现在不提供Booking with Partner了还是太笨?
相关话题的讨论汇总
话题: ou话题: cn话题: aaa话题: bbb话题: ccc
进入Unix版参与讨论
1 (共1页)
t***s
发帖数: 5
1
if i have a string:
"cn=aaa,ou=groups,ou=partners,o=abc.com:cn=bbb,ou=groups,ou=partners,o=abc.c
om:cn=ccc,ou=groups,ou=partners,o=abc.com"
how do i chnage the string to "aaa+bbb+ccc"? note that the number of
cn= here is variable. so could be aaa, aaa+bbb, aaa+bbb+ccc
i am currently
doing this in a very clumsy way (split by :) and then do a
match for cn= till the first comma. is there any mroe elegant
way.. a one-liner instead of my big loop?
1 (共1页)
进入Unix版参与讨论
相关主题
BA现在不提供Booking with Partner了还是太笨?regex: what does [^ ] mean?
今天面试了一家很奇怪的small firm?unix shell help?
BA查票是不是只能打电话了?can not make payment to finish the E72 order
Looking for partner (转载)次序颠倒了怎么说?
Chinese Characterhelp with reading a strange csv file into SAS
awk questionBig Chnages in Obama's Asia Team
Simple Question求助:签证到期,2019表到期,请问该如何转签证留美国?
question about vi中文名字/美国名字请教
相关话题的讨论汇总
话题: ou话题: cn话题: aaa话题: bbb话题: ccc