diff - difference between 2 commands in Unix AIX -
I need to find the difference between 2 CMD outputs. I got this CMD for Linux, but it is not working for Unix AIX server. diff & lt; (Cmd1) & lt; (Cmd2) Please let me know the same Unix command The instructions you are looking at are using process replacement , i.e. & lt; (...) part basically produces this cmd1 and presents it to such that the named file in the file system is defined by the diff . This is a feature of bash open, therefore, for a start you need to make sure that you do not use bash and sh are doing. If that does not resolve the problem, then you can try to download and install the latest bash for Ax. If that does not work, you need to use 2 temporary files, something like this (or using mktemp ): cmd1 & gt; Tmp1 _ $$ cmd2 & gt; Tmp2 _ $$ diff tmp1 _ $$ tmp2 _ $$ rm tmp? _ $$