Hi,
I would like to parse a fic with awk variable but i have a problem
My FIC :
Test1 1100
Test2 0011
Test3 011A
Test4 BB23
The result that i want :
Test1 1100
A script that work great :
awk '$2 ~ /^11/ {print $0}'
But i want to use a variable like HEXA=11
This not work like i want ...
Hi,
To use variable you can make like that :
awk ' ($1<s1) || ($1>s2) { print $1, $3 } ' s1=$s1 s2=$s2 fort.47
It is not very clean because you use the same name for the variable outside and inside awk. I think it is better like this :
awk ' ($1<var1) || ($1>var2) { print $1, $3 } ' var1=$s1...
Hi,
you have 6 disks: 2 146GB and 4 450GB.
I think you'll use the 2 146GB of your VIO servers (with LVM mirror) and thus you will remain 4 450 GB drives will be seen by the VIO server and then you map to your client partitions (LPARs 2) (with the mkvdev "post of Thomas")
You want to map 2...
Hi,
There is a little mistake ... You can try this :
df -k | awk -v i=0 '{i+=int($3); print ( $1 "\t" $7 "\t" ($3/1024) " mb " "\t" ($3/1024)/1024 " gb");}'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.