码迷,mamicode.com
首页 >  
搜索关键字:shell两文件对比    ( 1个结果
shell两文件对比,相同字符取出到另一个文本
##!/bin/bashecho"pleasesentera.txtfile(enterqtoexit)"read-dqAecho""echo"pleasesenterb.txtfile(enterqtoexit)"read-dqBecho""cat>/root/a.txt<<Eof$AEofcat>/root/b.txt<<Eof$BEofC=`cat/root/a.txt|grep-f/root/b.txt`D=`cat/root/a.txt|grep-f/root/b..
分类:系统相关   时间:2016-05-07 01:20:00    阅读次数:301
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!