码迷,mamicode.com
首页 > 系统相关 > 详细

shell脚本,实现奇数行等于偶数行。

时间:2016-10-26 07:09:09      阅读:220      评论:0      收藏:0      [点我收藏+]

标签:nbsp   脚本   技术   shell脚本   image   通过   com   分享   shell   

请把如下字符串
stu494
e222f
stu495
bedf3
stu496
92236
stu497
49b91
转为如下形式:
stu494=e222f
stu495=bedf3
stu496=92236
stu497=49b91

利用AWK来实现

技术分享

 通过shell脚本来实现

技术分享

 

shell脚本,实现奇数行等于偶数行。

标签:nbsp   脚本   技术   shell脚本   image   通过   com   分享   shell   

原文地址:http://www.cnblogs.com/wangyuebo/p/5998927.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!