Chinaunix
标题:
管道命令不起作用?
[打印本页]
作者:
luofeiyu_cu
时间:
2012-10-07 09:32
标题:
管道命令不起作用?
firefox $(grep -l "mysed" /home/test)
这个命令可以将/home/test目录下面的所有包含sed的文件,用firefox打开(我那个文件夹下面全部是html文件)
grep -l "mysed" /home/test) | firefox
为何这样,无法操作呢?
作者:
yestreenstars
时间:
2012-10-07 10:45
grep -l "mysed" /home/test) | firefox 怎么多了一个小括号
作者:
zooyo
时间:
2012-10-07 12:20
提示:
作者被禁止或删除 内容自动屏蔽
作者:
luofeiyu_cu
时间:
2012-10-07 14:12
解决了
grep -l "mysed" /home/test |xargs firefox
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2