Change the case of text on the command line.
Contents:
Commands in this repo:
Examples of each command:
$ echo "foo goo hoo" | upper-case
FOO GOO HOO
$ echo "FOO GOO HOO" | lower-case
foo goo hoo
$ echo "foo goo hoo" | title-case
Foo Goo Hoo
$ echo "foo-goo-hoo" | camel-case
fooGooHoo
$ echo "foo-goo-hoo" | pascal-case
FooGooHoo
$ 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: http://sixarm.com/change-case
- Cloning: https://github.com/sixarm/change-case
- Version: 3.1.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