From 1e89a73cf475b9c869a096f1dd5768071e348cad Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Mon, 11 Mar 2024 21:08:50 -0700 Subject: [PATCH] fix bin/sgi.sh to unique sort --- 2001/herrmann2/.gitignore | 1 + bin/sgi.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/2001/herrmann2/.gitignore b/2001/herrmann2/.gitignore index 188889829..981ac5f50 100644 --- a/2001/herrmann2/.gitignore +++ b/2001/herrmann2/.gitignore @@ -4,6 +4,7 @@ cup.out cup.out2 herrmann2 +herrmann2.alt herrmann2.orig indent indent.c diff --git a/bin/sgi.sh b/bin/sgi.sh index 29e6ffb07..016a38d17 100755 --- a/bin/sgi.sh +++ b/bin/sgi.sh @@ -47,5 +47,5 @@ # Share and enjoy! :-) sed -e '/^#/s/.*/0 &/' -e '/^*/s/.*/1 &/' -e '/^[^01*!]/s/.*/2 &/' -e '/^!/s/.*/3 &/' | - sort -k 1n -k 2d | + sort -u -k 1n -k 2d | sed 's/[0123] //'