Subby is a command-line tool for substituting string case variations.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
man
test
.gitignore
.yardopts
Gemfile
Gemfile.lock
README.md
Rakefile
subby.gemspec

README.md

Subby

Subby is a command-line tool for substituting string case variations.

Quick Examples

Basic usage.

$ echo "apple pie applePie apple_pie" | subby applePie chocolateCake
chocolate cake chocolateCake chocolate_cake

Copy and modify a file.

$ cat apple_pie.txt
apple pie Apple pie applePie

$ subby applePie chocolateCake < apple_pie.txt > chocolate_cake.txt

$ cat chocolate_cake.txt
chocolate cake Chocolate cake chocolateCake

Change snake case to camel case.

$ echo "apple pie applePie apple_pie" | subby -i snake -o camel applePie applePie
apple pie applePie applePie

Installation

Ruby is required.

$ gem install subby

Documentation:

Online

Man Page

Terminal

Usage

$ subby
$ subby -h
$ subby --help

Man Page

$ gem man subby

Project Organization

Contributing

Contributions are welcome. If you can improve subby, please feel free to fork the project on github and send me a pull request. Unit tests are in Minitest and UI tests are in BATS (a simple Bash testing system also used on rbenv). Add tests to the Rake test and unit_test tasks.

Bugs and Feature Requests

Email me.

Author

Kevin Jackson

License:

MIT