I think it is the Curly Braces. You may need to escape them:
appendfile “cut -f 1 -d: /etc/passwd | xargs -n 1 -I {{} bash -c " echo -e ‘\n{{}’ ; chage -l {{}”" > /var/opt/BESClient/local.txt
I think it is the Curly Braces. You may need to escape them:
appendfile “cut -f 1 -d: /etc/passwd | xargs -n 1 -I {{} bash -c " echo -e ‘\n{{}’ ; chage -l {{}”" > /var/opt/BESClient/local.txt