- 论坛徽章:
- 0
|
[root@3.7.0Biz-47 /home/aaa]# sed 's/^/cat "/g' o |sed 's/$/"\* | grep -c 'sj
ofjos' >count.files/g'
cat "./s2004/1245/s222981245.shtml"* | grep -c sjofjos >count.files
cat "./s2004/6620/s222976620.shtml"* | grep -c sjofjos >count.files
cat "./s2004/2536/s222762536.shtml"* | grep -c sjofjos >count.files
[root@3.7.0Biz-47 /home/aaa]# sed 's/^/cat "/g' -e 's/$/"\* | grep -c 'sjofjos' >count.files/g' o
sed: can't read s/^/cat "/g: Not a directory
./s2004/1245/s222981245.shtml"* | grep -c sjofjos >count.files
./s2004/6620/s222976620.shtml"* | grep -c sjofjos >count.files
./s2004/2536/s222762536.shtml"* | grep -c sjofjos >count.files
发现一个问题,为什么用管道可以,用-e报错呢?? |
|