I'm new to Unix and shell scripting, I'm able to run a code from terminal but the same command giving error when run in a shell script.#!/bin/bashdiff <((sort doc1) <(sort doc2)) | grep -x '.\{6\}' >sample.txtI'm getting this error when I run the shell:/App$ sh filediff.sh filediff.sh: 4: filediff.sh: Syntax error: ( unexpected
I'm able to run a code from terminal but the same command giving error when run in a shell script
shell script