I am migrating from bash to zsh. One of the difficulty I met is this script, could anyone help me with this script? I want to use comm command to do a TARGET - PRUNE_FILE operation: remove lines are in both files.proj.bak and prunefile.conf, from files.proj.bak.
TARGET=files.proj.bak
PRUNE_FILE=prunefile.conf
comm -23 <(sort files.proj.bak) <(sort prunefile.conf)
in bash it runs well, but in zsh, I got following error:
/Users/admin/Dropbox/loadrc.home/bashrc/cscope.sh: line 4: syntax error near unexpected token `('
/Users/admin/Dropbox/loadrc.home/bashrc/cscope.sh: line 4: `comm -23 <(sort files.proj.bak) <(sort prunefile.conf)'