diff --git a/do_process.sh b/do_process.sh index 9d45ab3..6c51cc6 100755 --- a/do_process.sh +++ b/do_process.sh @@ -21,7 +21,7 @@ if [[ -f ${DATE} ]]; then } get_list_of_orgs () { while read; do - org=$( $grep -Po "\s+\[.*\]" <<< "${REPLY}" | tr -d '[][]' | xargs ) + org=$( $grep -Po "\[.*\]" <<< "${REPLY}" | tr -d '[][]' ) [[ "${org}x" == "x" ]] && continue # org="${org##*( )}" # trim leading whitespace # org="${org%%*( )}" # trim trailing whitespace