I need to using "zmprov sa ..." in a script so that the searched string could be variable. I tried below command, but is didn't work!
zmprov -l sa "(zimbraLastLogonTimestamp>=$year$month00000000Z)"
year and month are two variables. They are 2018 and 07
How to use variable tosearch by zmprov sa
- ccelis5215
- Outstanding Member
- Posts: 632
- Joined: Sat Sep 13, 2014 2:04 am
- Location: Caracas - Venezuela
- ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 P12
Re: How to use variable tosearch by zmprov sa
Hi,masoumeh wrote:I need to using "zmprov sa ..." in a script so that the searched string could be variable. I tried below command, but is didn't work!
zmprov -l sa "(zimbraLastLogonTimestamp>=$year$month00000000Z)"
year and month are two variables. They are 2018 and 07
Try
Code: Select all
zmprov -l sa "zimbraLastLogonTimestamp>=${year}${month}01000000.000Z"
Re: How to use variable tosearch by zmprov sa
Thanksccelis5215 wrote:Hi,masoumeh wrote:I need to using "zmprov sa ..." in a script so that the searched string could be variable. I tried below command, but is didn't work!
zmprov -l sa "(zimbraLastLogonTimestamp>=$year$month00000000Z)"
year and month are two variables. They are 2018 and 07
TryccelisCode: Select all
zmprov -l sa "zimbraLastLogonTimestamp>=${year}${month}01000000.000Z"