summaryrefslogtreecommitdiff
path: root/fmt/scream
diff options
context:
space:
mode:
Diffstat (limited to 'fmt/scream')
-rwxr-xr-xfmt/scream4
1 files changed, 4 insertions, 0 deletions
diff --git a/fmt/scream b/fmt/scream
new file mode 100755
index 0000000..4836167
--- /dev/null
+++ b/fmt/scream
@@ -0,0 +1,4 @@
+#!/bin/sh
+# scream: CONVERT_A_STRING_INTO_SCREAM_CASE
+
+echo "$1" | tr ' ' '_' | tr '[:lower:]' '[:upper:]' | sed 's/[^a-zA-Z0-9_]//g'