string
string OPTIONS [VERB] [VERB PARAMETERS…]
string is a command line tool for transforming strings in common ways.
VERB refers to the operation to performed on the supplied string(s). VER PARAMETERS are thsose additional terms need to complete the process provided by the VERB.
Options always come before the VERB.
-license :display license
string contains SUBSTRING [STRING]
string count SUBSTRING [STRING]
string englishtitle [STRING]
string hasprefix PREFIX [STRING]
string hassuffix SUFFIX [STRING]
string join DELIMITER [JSON_ARRAY]
string length [STRING]
string padleft PADDING MAX_LENGTH [STRING]
string padright PADDING MAX_LENGTH [STRING]
string position SUBSTRING [STRING]
string replace OLD NEW [STRING]
string replacen OLD NEW N [STRING]
string slice START END [STRING]
string split DELIMITER [STRING]
string splitn DELIMITER N [STRING]
string tolower [STRING]
string totitle [STRING]
string toupper [STRING]
string trim CURSET [STRING]
string trimleft CUTSET [STRING]
string trimprefix PREFIX [STRING]
string trimright CUTSET [STRING]
string trimspace [STRING]
string trimsuffix SUFFIX [STRING]
Convert text to upper case
string toupper "one"
Convert text to lower case
string tolower "ONE"
Captialize an English phrase
string englishtitle "one more thing to know"
Split a space newline delimited list of words into a JSON array
string -i wordlist.txt split "\n"
Join a JSON array of strings into a newline delimited list
string join '\n' '["one","two","three","four","five"]'
string 1.2.10