Search Results

Search: Posts Made By: jayachandran87
7,250
Posted By jayachandran87
Yeah.. thats right.. We can do that in awk too.. ...
Yeah.. thats right.. We can do that in awk too..

But my doubt is simple..

In command line the O/P of the below command is

$ vgdisplay vgesar | grep -i 'Free PE' | awk '{print $NF}'
69

In...
7,250
Posted By jayachandran87
Please find attachment of vgdisplay -v Also...
Please find attachment of vgdisplay -v

Also just to add $NF comes with awk utility.

to get the last field
7,250
Posted By jayachandran87
Thanks for your response.. $ vgdisplay vgesar...
Thanks for your response..
$ vgdisplay vgesar | grep -i 'Free PE' | awk '{print $NF}'
69

As i said am just starting with perl. this is one block. Am trying to use perl, as i ll have...
7,250
Posted By jayachandran87
Cannot execute Unix command in a simple perl script
Am trying to lean perl scripting in Unix OS to automate my tasks.

Please find the below perl script i have tried


#!/usr/bin/perl -w
print "Please Enter the VG name to be checked:";
$A = <>;...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 01:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy