Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/306.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
什么是ag';s(银色搜索器)类似于grep';s——行缓冲?_Grep_Ag - Fatal编程技术网

什么是ag';s(银色搜索器)类似于grep';s——行缓冲?

什么是ag';s(银色搜索器)类似于grep';s——行缓冲?,grep,ag,Grep,Ag,我想使用ag,就像使用grep时使用--line buffered一样。可能吗?如果没有,我还需要什么样的选项来模仿这种行为?我想要ag支持——行缓冲风格的功能 我已针对agGithub repo提出请求,请求此功能 同时,我找到的最佳解决方案是用stdbuf-oL包装ag # instead of grep grep --line-buffered pattern # use ag with a stdbuf wrapper stdbuf -oL ag pattern 从v0.10.0开始

我想使用ag,就像使用grep时使用--line buffered一样。可能吗?如果没有,我还需要什么样的选项来模仿这种行为?

我想要
ag
支持
——行缓冲
风格的功能

我已针对
ag
Github repo提出请求,请求此功能

同时,我找到的最佳解决方案是用stdbuf-oL
包装
ag

# instead of grep
grep --line-buffered pattern

# use ag with a stdbuf wrapper
stdbuf -oL ag pattern
从v0.10.0开始,rg(ripgrep)工具现在已经获得了对--line缓冲开关的支持。