How to sort a file using sort command..
I would like to sort the file based on 2nd field which is seperated by "," as a delimiter
Ex: filename1, 465, output_file1,
filename2, 300, output_file2,
Expected output :
filename1, 300, output_file,
filename1, 465, output_file,
I tried this command
sort -t, +1 -2 <file.txt>
But this didn't help. Please let me know if I am missing something
thanks Kiran