#!/bin/sh
###############################################################################################################
# Script name: get_table.sh
# Script description: Get "db2pd -d <dbname> -tab" information
# Current Release Version: 1.0.0
# Script Owner: He ,Haibo
# Latest editor: He, Haibo
# Support platform: Linux OS for Linux.
# Change log: None
# Description:Date 2022/3/2
#
#
###############################################################################################################
file_num=`cat aa.out | grep -n "TCB Index Information:" | cut -d ":" -f 1`
file_start_num=`cat aa.out | grep -n "TCB Table Stats:" | cut -d ":" -f 1`
for ((i=$file_start_num; i<=$file_num; i++))
do
sed -n "$i"p"" aa.out | awk -F ' ' {'print $3,$2,$4,$11,$12,$13'}
done
版权声明:本文为博主原创文章,未经博主允许不得转载。
shell