I have this shell script which I use to back up my system. There is a line:
tar -Pzcpf /backups/backup.tar.gz --directory=/ --exclude=proc --exclude=sys --exclude=dev/pts --exclude=backups --exclude=var/log / 2> >(grep -v 'socket ignored' >&2)
As you can see, I have been trying to filter out the annoying, useless "socket ignored" error by tar, using this blog post.
What I get from shell upon execution is:
/bin/sysback: line 45: syntax error near unexpected token
>' /bin/sysback: line 45:
tar -Pzcpf /backups/backup --directory=/ --exclude=proc --exclude=sys --exclude=dev/pts --exclude=backups --exclude=var/log / 2> >(grep -v 'socket ignored' >&2)'