![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
大海之粟
认真负责
展开
-
linux shell编程查找文件内容
<br />#!/bin/sh<br />cat copyreadfile.txt|egrep '1352047'|<br />while read LINE<br />do<br /> <br />echo $LINE<br />done原创 2010-10-12 15:14:00 · 1603 阅读 · 0 评论 -
linu查找文件命令
<br />1.在文件中查找内容<br />find . |grep 20100714|xargs cat|grep 13909313683|wc -l <br /> <br />2.根据文件内容查找文件名<br /> grep JPXH *.req<br /><br />3.根据文件内容查找文件名<br />find ./ -type f -name '*20100812*'|xargs grep 'BK'<br />原创 2010-10-12 15:10:00 · 590 阅读 · 0 评论 -
linux shell编程模拟用户登录
<br />a="hello world"<br />echo "A is:" $a<br />echo "when you want to run this script ,please input your id and passwd!"<br />echo "please input you ID:"<br />read ID<br />stty -echo<br />echo "please input your password"<br />read password<br />stty echo转载 2010-10-12 15:12:00 · 3354 阅读 · 0 评论 -
shell 脚本读写处理文件
<br />#!/bin/sh<br />#文件的源处理路径<br />fileName=$1<br />#文件的目录处理路径<br />resultBillPath=$2<br />i=1<br />if [ -f $fileName ];then<br /> cat $fileName|while read Line;<br /> do <br /> #种子id号,除以1000后的<br /> id=`echo $Line | awk -F ',' '{print $1}'原创 2010-11-05 10:48:00 · 5615 阅读 · 0 评论