From ecd73e933fc585b444dd9f2ffac1668ec1b3e840 Mon Sep 17 00:00:00 2001 From: Trey Blancher Date: Fri, 3 Apr 2020 17:06:41 -0400 Subject: [PATCH] Removed unnecessary call to xargs --- do_process.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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