in reply to Re: Perl 'pipe' problem
in thread Perl 'pipe' problem

I just tried it and I get the same error

sh: syntax error at line 1: `(' unexpected

Replies are listed 'Best First'.
Re: Re: Re: Perl 'pipe' problem
by grep (Monsignor) on Apr 23, 2003 at 23:36 UTC
    ok try
    /bin/bash -c 'grep perl $(find . -mtime -1) | wc -l'

    Obviously, I changed the command a little so I would get some results on my box :) but the command structure is the same as yours.

    I'm running Linux and it's working fine for me.

    grep
    Mynd you, mønk bites Kan be pretti nasti...

      U da man! :)

      this seems to work for me...

      $x = `ksh -c "grep orderNumber \$(find /home/homedepot/ECOM/prod/in -mtime -1) | wc -l"`;

      Thanks.