Removed unnecessary call to xargs

This commit is contained in:
Trey Blancher 2020-04-03 17:06:41 -04:00
parent 1bc9d37024
commit ecd73e933f
1 changed files with 1 additions and 1 deletions

View File

@ -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