Help in script - Getting table name from a text file

hhhhhhhhhh

hhhhhhhhhhh

Hi sams,

Try with:

awk '$5~/table/{t=$5} $4~/\*\*\*/{print t} ' input

Regards

hhhhhhhhhh

This could be a start.

awk 'BEGIN{ RS=""; FS="\n" } /\*\*\*/ {split($1, a, " "); print a[5]}' filename.txt

hhhhhhhhhh