How to get all tables of hbase in linux shell script and operate on each table?
How to get all tables of hbase in linux shell script and operate on each table? Now I can do it with this code, but is there a better way to do this? output=`echo "list" | hbase shell` output=`echo ${output} | cut -d'[' -f 2 | cut -d']' -f 1` IFS=',' read -ra tables <<< "$output" for tb in "${tables[@]}"; do echo "${tb}n" done What exactly is wrong with this? – cricket_007 Jul 1 at 4:10 I thought it is not that graceful to parse the output and wonder if there is a better way to do this. – xunyl Jul 1 at 4:15 1 Answer 1 You could si...