Hi,
I have a problem with my script which processes my oracle output. Here is part of the sample output:
Unix File System TBS Name 10% Size
/data/oracle/R1LD/data03/ TSINDEX 204800
/data/oracle/R1LD/data03/ TSINDEX 204800
/data/oracle/R1LD/data04/ TSINDEX 204800
/data/oracle/R1LD/data04/ TSINDEX 204800
/data/oracle/R1LD/data04/ TSINDEX 204800
/data/oracle/R1LD/data05/ TSINDEX 204800
/data/oracle/R1LD/data05/ TSINDEX 204800
/data/oracle/R1LD/data05/ TSINDEX 204800
Each Record is seperated by newline and each field is seperated by tab. The task definition is:
Loop through all the rows, and for each distinct "File System" ($1), sum up the "10% Size" ($3), if the sum is smaller than a given value, store "TBS NAME" ($2) for those records.
At the end of AWK, print out all the "TBS NAME"s stored in the loop and direct output to a file.
I'm struggling with manipulating records using AWK to do complicated operations like this. I was adviced to use another language to write this programme but time is very limited.
Thank you in advance for your help!
I have a problem with my script which processes my oracle output. Here is part of the sample output:
Unix File System TBS Name 10% Size
/data/oracle/R1LD/data03/ TSINDEX 204800
/data/oracle/R1LD/data03/ TSINDEX 204800
/data/oracle/R1LD/data04/ TSINDEX 204800
/data/oracle/R1LD/data04/ TSINDEX 204800
/data/oracle/R1LD/data04/ TSINDEX 204800
/data/oracle/R1LD/data05/ TSINDEX 204800
/data/oracle/R1LD/data05/ TSINDEX 204800
/data/oracle/R1LD/data05/ TSINDEX 204800
Each Record is seperated by newline and each field is seperated by tab. The task definition is:
Loop through all the rows, and for each distinct "File System" ($1), sum up the "10% Size" ($3), if the sum is smaller than a given value, store "TBS NAME" ($2) for those records.
At the end of AWK, print out all the "TBS NAME"s stored in the loop and direct output to a file.
I'm struggling with manipulating records using AWK to do complicated operations like this. I was adviced to use another language to write this programme but time is very limited.
Thank you in advance for your help!