Specify field separator for sort in Unix
surprisingly easy :) and listed in the manual for ‘sort’ command (>> man sort)
as an example, say you have a commas as the FS. to sort, use the option
sort --field-separator=,
that is a double dash - -
seen from Bangladesh
seen from United States
seen from Oman
seen from Malaysia
seen from Japan

seen from Germany
seen from Türkiye
seen from Germany
seen from United States

seen from Italy
seen from China

seen from United States

seen from Italy
seen from Norway

seen from Oman
seen from Indonesia
seen from Oman
seen from Oman

seen from Oman
seen from United States
Specify field separator for sort in Unix
surprisingly easy :) and listed in the manual for ‘sort’ command (>> man sort)
as an example, say you have a commas as the FS. to sort, use the option
sort --field-separator=,
that is a double dash - -