summaryrefslogtreecommitdiff
path: root/fmt/mumble
blob: f5494fc2fba601e03a93e22c4350eb0e3fa8e2c4 (plain) (blame)
1
2
3
4
5
#!/bin/sh
# mumble: convertastringintomumblecase
# snake: convert_a_string_into_snake_case

echo "$1" | tr -d ' ' | tr '[:upper:]' '[:lower:]' | sed 's/[^a-zA-Z0-9]//g'