Here's my script:
#!/bin/sh
result=$((diff <(sort 1.txt) <(sort 2.txt)))
if [[ $result != "" ]]
then
    echo ERROR
else
    echo PASS
fi
I got an error when execute this script:
chk.sh: line 3: diff <(sort 1.txt) <(sort 2.txt): missing `)' (error token is "1.txt) <(sort 2.txt)")
What the reason and how to fix it?


