3

I'm trying to redirect the output of ack-grep to a file using the following command:

ack-grep "some_regex" > file

This command leads to an infinite loop (I guess), and the file keeps growing until the system runs out of disk space.

Here's the output of ack-grep --version:

ack-grep 2.12                              
Running under Perl 5.18.2 at /usr/bin/perl 

Is there an alternative to using redirection?

Fábio Perez
  • 23,850
  • 22
  • 76
  • 100

1 Answers1

2

Simply save the output elsewhere ack-grep "some_regex" > ../file

Vinnie James
  • 5,763
  • 6
  • 43
  • 52