(sed '' file1 | sort -o file2)
what is (sed '' file1) means?
I have two files:
file1 has the format:
(file1 is initially unsorted)
file2 has the format:
(file2 is sorted)
I run the 2 following commands:
sort -t\; -k1 file1 -o file1 # to sort file 1
join -t\; -1 1 -2 1 -o 1.1 1.2 1.3 1.4 file1 file2
I get the following message:
join: file1:27497: is not sorted: line_which_was_identified_as_out_of_order
I have these three examples of redirection stdin/stdout, only one of them is working the way it is intended to.
I'm on Windows Server 2012 R2.