Change the case of text on the command line.
Contents:
Commands in this repo:
Examples of each command:
$ echo "foo BAR" | upper-case
FOO BAR
$ echo "foo BAR" | lower-case
foo bar
$ echo "foo BAR" | title-case
Foo Bar
$ echo "foo-goo-hoo" | camel-case
fooGooHoo
$ echo "foo-goo-hoo" | pascal-case
FooBarHoo
$ echo "fooGooHoo" | kebab-case
foo-goo-hoo
$ echo "fooGooHoo" | snake-case
foo_goo_hoo
$ echo "Can't Stop Won't Stop" | slug-case
cant-stop-wont-stop
$ echo "Can't Stop Won't Stop" | word-case
Cant_Stop_Wont_Stop
These scripts use perl because we want these scripts to work on a wide range of systems, including older systems.
These scripts are intended to be simple.
These scripts are not intended to handle examples such as a title using upper-case content words along with lower-case short words.
- Package: change-case
- Website: https://sixarm.com/change-case
- Cloning: https://github.com/sixarm/change-case
- Version: 3.0.0
- Created: 2017-05-16
- Updated: 2023-10-17T05:56:08Z
- License: GPL-2.0 or GPL-3.0 or contact us for custom
- Contact: Joel Parker Henderson ([email protected])
- Tracker: 760a85cee2b838f3297f5a5b2bfd9996