+ -
当前位置:首页 → 问答吧 → 报错,grep: Memory exhausted,如何解决?谢谢!!

报错,grep: Memory exhausted,如何解决?谢谢!!

时间:2011-04-11

来源:互联网

本帖最后由 andy20008 于 2011-04-11 13:41 编辑

各位好,


我在执行含grep命令的shell脚本时,老是会提示如下的内容,这是什么原因啊,请各位帮忙解答下,谢谢!!!
grep: Memory exhausted

说明:我是在windows下用的cygwin环境。


注:我写的grep语句是没有语法错误的,但是还是执行不了,郁闷中。
在论坛中也搜了一下,之前有人提过这样的帖子,但是没人回复,没有得到解决,希望这次能够得到解决。

作者: andy20008   发布时间: 2011-04-11

回复 andy20008

man grep:
   

QUOTE:
       Large  repetition  counts  in the {n,m} construct may cause grep to use lots of memory.
       In addition, certain other obscure regular expressions  require  exponential  time  and
       space, and may cause grep to run out of memory.

作者: yinyuemi   发布时间: 2011-04-11