Jul 23, 2009
利用for + grep awk 解决grep + xargs
cat aaa | xargs grep **
想实现类似这样的东东,但似乎xargs 和grep搭配似乎不支持,于是采用了如下策略。
for i in `awk ‘{print $1}’ bad.result.txt`; do if [ `grep $i uid_result` ]; then echo $i; fi; done
If you enjoyed this post, make sure you subscribe to my RSS feed!









3 Comments, Comment or Ping
yanpeng
这布局应该搞搞,边上两栏有点多啊
Sep 3rd, 2009
Anonymous
呵呵,看了看楼主的空间挺好的。
1. 你的空间是买别人的,还是自己架的服务器啊。
2.我也想搞个类似楼主的网站,没什么头绪,楼主可否指点一二。
在这里先谢谢了。
Oct 18th, 2009
zja601
个人买的服务器,
你有兴趣玩这个,
我好长时间不维护了,
Oct 19th, 2009
Reply to “利用for + grep awk 解决grep + xargs”
You must be logged in to post a comment.