I have these two files:-
[root@localhost base_filters]# cat aix_old joe amadeus image bill juliet charlie romeo ftp [root@localhost base_filters]# cut -d: -f1 passwd2 henry amadeus image bill julie jennifer charlie romeo harry
I am trying to find out the differences between two files; so I am using the following command:-
[root@localhost base_filters]# cut -d: -f1 passwd2 | sort | diff `sort aix_old` -
But getting this following error:
diff: extra operand `charlie' diff: Try `diff --help' for more information.
I know I can use another temporary file for sorting the contents in
aix_old but I don't want another temporary file; so tried with command substitution.
Any idea, what I might be doing wrong.