Ankit Gupta wrote:
> Hi,
>
> I want to print some linux environment variables that have already been
> set. Could some one let me know which command I can use to get value of
> environment variables.
>
> Regards,
> Ankit
perl -le 'print "$_ -> $ENV{$_}" for sort keys %ENV'
--
To unsubscribe
my ($K, $V);
while (($K,$V) = each %ENV) {
print "Key - $K\nVAL - $V\n\n";
}
-Original Message-
From: Ankit Gupta [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 3:23 PM
To: [EMAIL PROTECTED]
Subject: Linux Environment Variable
Hi,
I want to print some linux environment
On Thu, 20 Mar 2003, Ankit Gupta wrote:
> Hi,
>
> I want to print some linux environment variables that have already been set.
> Could some one let me know which command I can use to get value of
> environment variables.
Environment variables are available through the %ENV hash. For e.g. to get