summaryrefslogtreecommitdiff
path: root/sortbucketed.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sortbucketed.sh')
-rw-r--r--sortbucketed.sh3
1 files changed, 3 insertions, 0 deletions
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