Skip to content
Discussion options

You must be logged in to vote

Cheers! The answer is to actually sort via @ and + instead, best results :)

%:pipe sort -t@ -k2
%:pipe sort -t+ -k2

The -t option is used to specify the field separator character. It allows you to define a custom delimiter character to separate fields in the input file. By default, sort uses whitespace as the field separator. With the -t option, you can specify a different character to be used as the field separator.

In Unix sort, the "-k2" option is used to specify the key field for sorting. It indicates that the sorting should be done based on the second field (column) of the input.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@David-Else
Comment options

@pascalkuthe
Comment options

@David-Else
Comment options

Answer selected by David-Else
@mweihs
Comment options

@David-Else
Comment options

@David-Else
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants