in reply to Re: How to fetch the value of unix command result
in thread How to fetch the value of unix command result
I got the below output when i run the unix command on zip file, this count of CHECK and RECHECK
2 4 CHECK 7 RECHECK
I want to store the value 4 and 6 in a scalar variable as follows
my $c = 4; my $c1 =6;
This is my code shown below
my $r = `gunzip -c test.txt.gz|cut -f3 -d'|'|sort|uniq -c`;
I want to store the values 4 and 6 separately in two separate variables
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to fetch the value of unix command result
by rjt (Curate) on Jun 30, 2013 at 12:22 UTC | |
|
Re^3: How to fetch the value of unix command result
by rajsai28 (Novice) on Jun 30, 2013 at 12:01 UTC | |
by rjt (Curate) on Jun 30, 2013 at 12:45 UTC | |
by rajsai28 (Novice) on Jun 30, 2013 at 13:07 UTC | |
by poj (Abbot) on Jun 30, 2013 at 13:42 UTC | |
by rajsai28 (Novice) on Jun 30, 2013 at 14:14 UTC | |
|