Skip to content

Instantly share code, notes, and snippets.

@halidaltuner
Created October 1, 2012 14:43
Show Gist options
  • Save halidaltuner/3812208 to your computer and use it in GitHub Desktop.
Save halidaltuner/3812208 to your computer and use it in GitHub Desktop.
Zimbra Multiple Account Removing from text file
OLD_IFS=$IFS
IFS=$'\n'
lines_ary=( $(cat "./mail.txt") )
IFS=$OLD_IFS
for idx in $(seq 0 $((${#lines_ary[@]} - 1))); do
line="${lines_ary[$idx]}"
zmprov da ${line}
printf "${line} removed!\n"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment