Welcome.
You make a file, change the permissions so that it is executable,
Code:
mkdir ~/bin/
touch ~/bin/myscript
chmod +x ~/bin/myscript
then edit it to contain almost the same information:
Code:
#!/bin/sh
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
set -e
find /projects/projectname -type d -print \
| parallel -j 32 mmputacl -i /root/folderacltopush.acl {} \
> /root/folderacltopush.acl.log 2>&1
exit 0
Then you can run it,
The "set -e" is optional. It causes the script to exit as soon as any command fails. That helps with debugging.
Some resources which are useful for learning shell scripts:
Edit: by the way, the
{} does not fit with where it is used and if your formula really does work in the terminal then that part can probably be removed. Perhaps
xargs is missing from your script?