Article 4V0NY use comm and sort in zsh

use comm and sort in zsh

by
huangyingw
from LinuxQuestions.org on (#4V0NY)
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.
Code: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 in zsh:
Code:/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)'latest?d=yIl2AUoC8zA latest?i=C3Yl6zIntWA:SthES1VrTeg:F7zBnMy latest?i=C3Yl6zIntWA:SthES1VrTeg:V_sGLiP latest?d=qj6IDK7rITs latest?i=C3Yl6zIntWA:SthES1VrTeg:gIN9vFwC3Yl6zIntWA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments