I have a script that works okay on my dev server but when I try to run it in production doesn't work.
I'm getting the following error which I can't figure out:
./test.sh: line 5: UID: readonly variable
Any suggestions?
#!/bin/sh while read inputline do UID="$(echo $inputline | cut -d '"' -f4)" PASSWORD="$(echo $inputline | cut -d '"' -f8)" FIRST="$(echo $inputline | cut -d '"' -f6 | cut -d ' ' -f1)" LAST="$(echo $inputline | cut -d '"' -f6 | cut -d ' ' -f2)" zmprov createAccount $UID $PASSWORD displayName "$FIRST $LAST" givenName $FIRST sn $LAST done < company.csv