c*t
6 楼
1. find could do the job as well :) Mastering find is invaluable.
2. Learn to use backquote.
rm `ls -1 | grep mystr`
【在 F***Q 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: I got it,thx
: but I still wonder how can I get the purpose by using ls as
: ls -1 | grep mystr
: which can list all of the files, then, how to delete them?
: only can find exec another command?
2. Learn to use backquote.
rm `ls -1 | grep mystr`
【在 F***Q 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: I got it,thx
: but I still wonder how can I get the purpose by using ls as
: ls -1 | grep mystr
: which can list all of the files, then, how to delete them?
: only can find exec another command?
t*l
7 楼
I think this won't work. should be
rm `ls -1 | xargs grep -l mystr`
rm `ls -1 | xargs grep -l mystr`
相关阅读
Using Ksh to ftp files请教关于vi[转载] 怎么把.dvi文件转化成.ps文件并保存?如何生成静态连接库?(zz)emacs里怎么把两个eps图并排放在一起呀?SUN OS下有没有能断点续传的ftp客户端软件?UNIX下有类似acdsee的软件么?How to get SCO UNIX?[转载] Where to find driver of 3com 3c905-TX for Linux?Forte C++Re: 请问有什么好软件可以图形化地远程登录到solaris上? 是x-windows吗?[转载] Unix C 求教: 怎么样把一个c程序compile成lib/下的 .a, .so文件[转载] where is the 'iostream' file ?manage cisco router[转载] BBS架好了。帮忙测试一下吧再问一个名词recover deleted folder有没有appointment reminder软件?files write rights[转载] 有用OS X server 10.2的吗?? 实在太郁闷了!!!