Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jmc0031

    Awk parsing with variable

    Hi The 2 solutions work great Thanks
  2. jmc0031

    Awk parsing with variable

    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 ...
  3. jmc0031

    how to use external variable in awk

    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...
  4. jmc0031

    Build new VIO server how do disk get allocated

    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...
  5. jmc0031

    VIO

    Hi, You can use this code to have all hdisk to all vhost (as padmin on VIO servers): lsmap -all -field svsa backing -fmt "," Regards, jmc0031
  6. jmc0031

    df command on older AIX version can u upgrade to show Gigs

    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");}'

Part and Inventory Search

Back
Top