in reply to Re: Counting devices types, device sizes and number of devices.
in thread Counting devices types, device sizes and number of devices.
Hi Sewi,
Thanks for the reply.
I was planning to first use an array and then pass the elements of the array to a hash...Came out with very very basic stuff like this:
#!/usr/bin/perl use warnings; use strict; my $command = `symdev -sid 1234 list -noport -noreserve|find /I "not v +isible"`; my @cmdline = split (/\n/, $command); my @chgcmdline = @cmdline[5,8]; print "@chgcmdline\n";
But got stuck after this. Tried going through the node I have mentioned earlier and figuring out. The symdev -sid 1234 list -noport -noreserve|find /I "not visible" is the command that gives the output mentioned in my post.
BTW - I am using Strawberry Perl that came bundled with Padre IDE and I do sometimes use Padre. Awesome IDE. Mr. Gabor did a great thing by pre bundling a lot of modules. Neat stuff :)
Perlpetually Indebted To PerlMonks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Counting devices types, device sizes and number of devices.
by Sewi (Friar) on Jan 03, 2012 at 20:03 UTC | |
|
Re^3: Counting devices types, device sizes and number of devices.
by Marshall (Canon) on Jan 06, 2012 at 17:26 UTC |