I have the following command...
/bin/bash -c 'diff <(sort text2) <(sort text1)'
It sorts each file and pipes them into the diff function. This works well if /bin/bash
exists. However, the system I'm on only has /bin/sh
. I'm struggling to find the equivalent command for this.
If I run...
/bin/sh -c 'diff <(sort text2) <(sort text1)'
I will get...
/bin/sh: syntax error: unexpected "("
The POSIX shell equivalent of Bash:
is:
Or in a civilized way