in reply to Re^2: How to Execute unix commands like "WC, tail, Gunzip, ZIP" against a file which is read from directory
in thread How to Execute unix commands like "WC, tail, Gunzip, ZIP" against a file which is read from directory

Hi Monks,

i got the syntax and please check below

my $result = `gunzip -c $file|tail -1`;

where i can get the unix command result

  • Comment on Re^3: How to Execute unix commands like "WC, tail, Gunzip, ZIP" against a file which is read from directory
  • Download Code

Replies are listed 'Best First'.
Re^4: How to Execute unix commands like "WC, tail, Gunzip, ZIP" against a file which is read from directory
by Corion (Patriarch) on Jun 07, 2013 at 06:21 UTC

    Maybe you want to read about what the "backticks" operator does. Consult perlop about qx or "backticks".

    Also, in your code snippet, the variable $result was given a name that might indicate its use.

      Hi Monks, thanks all for the wonderfull inputs. my apologies if i repeated the question regards,