免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: jokimina
打印 上一主题 下一主题

[文本处理] seq 与 sed的一个小困惑. [复制链接]

论坛徽章:
23
15-16赛季CBA联赛之吉林
日期:2017-12-21 16:39:27白羊座
日期:2014-10-27 11:14:37申猴
日期:2014-10-23 08:36:23金牛座
日期:2014-09-30 08:26:49午马
日期:2014-09-29 09:40:16射手座
日期:2014-11-25 08:56:112015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:49:0315-16赛季CBA联赛之山东
日期:2017-12-21 16:39:1915-16赛季CBA联赛之广东
日期:2016-01-19 13:33:372015亚冠之山东鲁能
日期:2015-10-13 09:39:062015亚冠之西悉尼流浪者
日期:2015-09-21 08:27:57
11 [报告]
发表于 2014-12-02 17:10 |只看该作者
回复 10# super皮波


       b label
              Branch to label; if label is omitted, branch to end of script.

论坛徽章:
0
12 [报告]
发表于 2014-12-02 17:48 |只看该作者
回复 9# ly5066113


    眼睛已瞎.....   要好好研究下了..

论坛徽章:
0
13 [报告]
发表于 2014-12-02 17:54 |只看该作者
回复 6# ly5066113


    可以麻烦稍微解释一下下么   ...  关于sed的两个空间和标签跳转还有点凌乱..

论坛徽章:
5
白羊座
日期:2014-10-28 11:23:27水瓶座
日期:2015-01-20 10:19:022015亚冠之柏斯波利斯
日期:2015-07-11 18:17:2015-16赛季CBA联赛之同曦
日期:2015-12-23 12:38:582016猴年福章徽章
日期:2016-02-18 15:30:34
14 [报告]
发表于 2014-12-03 11:06 |只看该作者
这个R用的非常赞,学习了
R filename
Queue a line of filename to be read and inserted into the output stream at
the end of the current cycle, or when the next input line is read. Note that
if filename cannot be read, or if its end is reached, no line is appended,
without any error indication.
As with the r command, the special value /dev/stdin is supported for the file
name, which reads a line from the standard input.
回复 8# yinyuemi


   

论坛徽章:
0
15 [报告]
发表于 2014-12-03 16:42 |只看该作者
awk -v FS='' '{print $0;for(i=1;i<=NF;i++){if($i==1){print ++sum}}}'
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP