aboutsummaryrefslogtreecommitdiffstats
path: root/bin/lowercase
diff options
context:
space:
mode:
Diffstat (limited to 'bin/lowercase')
-rwxr-xr-xbin/lowercase23
1 files changed, 0 insertions, 23 deletions
diff --git a/bin/lowercase b/bin/lowercase
deleted file mode 100755
index 09273b0..0000000
--- a/bin/lowercase
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-
-# lowerext.sh
-
-while read f; do
- if [[ "$f" = *.* ]]; then
- # Extract the basename
- b="${f%.*}"
-
- # Extract the extension
- x="${f##*.}"
-
- # Convert the extension to lower case
- # Note: this only works in recent versions of Bash
- l="${x,,}"
-
- if [[ "$x" != "$l" ]]; then
- mv "$f" "$b.$l"
- fi
- else
- continue
- fi
-done