diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2024-12-05 13:49:22 -0500 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2024-12-05 13:49:22 -0500 |
| commit | f8d09c5cfd6d1d9595b64547dc9d29c63e40c5f2 (patch) | |
| tree | 0dd9cfa47cfa0bd4d57d7789439cc86afbbdfa85 /scripts/cs | |
| parent | 29b1c791f6e319cdab828cee5f491ca1c38e41d1 (diff) | |
Moved .local/bin to scripts
Diffstat (limited to 'scripts/cs')
| -rwxr-xr-x | scripts/cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/cs b/scripts/cs new file mode 100755 index 0000000..f3090ba --- /dev/null +++ b/scripts/cs @@ -0,0 +1,7 @@ +#!/bin/sh + +[ -z "$(echo $@ | grep "\-l")" ] && str="a-z A-Z" || [ -z "$(echo $@ | grep "\-u")" ] && str="A-Z a-z" || (echo "cs: missing operand" && exit) +[ -z "$(echo $@ | sed 's/\-l//g;s/\-u//g')" ] && words=$(< /dev/stdin) || words="$(echo $@ | sed 's/\-l//g;s/\-u//g')" + +echo $words | tr $str + |
