From 0aec35a060a9f9e1e33c18bf0e2af2aafd6a6257 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 25 Feb 2019 17:19:48 +0000 Subject: Add various helper scripts --- sortbucketed.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 sortbucketed.sh (limited to 'sortbucketed.sh') diff --git a/sortbucketed.sh b/sortbucketed.sh new file mode 100644 index 0000000..ba3fbb4 --- /dev/null +++ b/sortbucketed.sh @@ -0,0 +1,3 @@ +# as filenames aren't necessarily the same length, pad them all to be so (bearing in mind it's right padding, as it's implied that it's 0.x) + +ls *png|sed 's/.png//g'|awk -F _ '{p = $3; while(length(p) < 18) {p = p "0"} ; printf("%s %s.png\n", p, $0)}'|sort -n|less -- cgit v1.2.1-24-ge1ad