I have two files in which some of the lines have changed order. I would like to be able to compare these.

One website suggested something that looks like this:

diff <(sort text2) <(sort text1)

But this yields the error: Missing name for redirect.

I am using tcsh. Is the command above for a different shell?

Is there a better way?

Edit
Report