From 8cddda47bda812e6a1a5b5de882956e509fdb568 Mon Sep 17 00:00:00 2001 From: Lionel GUEZ <guez@lmd.ens.fr> Date: Tue, 21 Dec 2021 20:12:57 +0100 Subject: [PATCH] Bug fix: sort on field 1 The correct syntax to sort on field 1 is `--key=1,1`. `--key=1` used as key from field 1 to the end of the line. So the key was non-numeric. --- Overlap/eddy_graph_in.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Overlap/eddy_graph_in.sh b/Overlap/eddy_graph_in.sh index 86b81ad2..078b531e 100755 --- a/Overlap/eddy_graph_in.sh +++ b/Overlap/eddy_graph_in.sh @@ -26,7 +26,7 @@ done # Sort the edge list for easier comparison between runs: export LC_NUMERIC=C # for the sort command -sort --key=1 --numeric-sort --output=edgelist.csv edgelist_unsorted.csv +sort --key=1,1 --numeric-sort --output=edgelist.csv edgelist_unsorted.csv rm edgelist_unsorted.csv echo "Created files \"edgelist.csv\", \"isolated_nodes.txt\" and " \ -- GitLab