Hello everyone
I am doing a join command. Obviously, before I need two files sorted first. ( Both files have headers and have about 2 million lines each one )
The problem is, one of the files has null values in the key to sort (which is the first filed ). For example I have the original file1.csv
imsi;hlr;subIndex;customer
700309879;2;66;tmobile
300123456;1;55;americamovil
;3;77;telefonica
I need the output to be ( first the header, then null values , then numeric values ) or ( header, numeric values, null values):
imsi;hlr;subIndex;customer
;3;77;telefonica
300123456;1;55;americamovil
700309879;2;66;tmobile
I have tried many combinations of sort flags using -b -t -d -n -g -k1 , but without success.
I am using a fedora 16
Appreciate your comments.
Best Regards