File tree Expand file tree Collapse file tree 7 files changed +119
-1
lines changed Expand file tree Collapse file tree 7 files changed +119
-1
lines changed Original file line number Diff line number Diff line change 2020</ nav >
2121
2222< section >
23- < h1 > string slice DELIMITER [JSON_ARRAY ]</ h1 >
23+ < h1 > string slice START END [STRING ]</ h1 >
2424
2525< p > This command will return slice a string starting
2626at START (inclusive) and finishing at END (exclusive).</ p >
Original file line number Diff line number Diff line change 2020</ nav >
2121
2222< section >
23+ < h1 > string toupper [STRING]</ h1 >
24+
25+ < p > This command will with return a upper case version of
26+ string.</ p >
27+
28+ < h2 > Typical command line</ h2 >
29+
30+ < pre > < code class ="language-shell "> string toupper "the people were freindly"
31+ </ code > </ pre >
32+
33+ < p > Would return < code > THE PEOPLE WERE FREINDLY</ code > </ p >
34+
35+ < h2 > Piping content</ h2 >
36+
37+ < p > NOTE: To read content from standard input we use the < code > -i -</ code > option.</ p >
38+
39+ < pre > < code class ="language-shell "> echo "the people were freindly" | string -i - toupper
40+ </ code > </ pre >
41+
42+ < p > Would return < code > THE PEOPLE WERE FREINDLY</ code > </ p >
2343
2444</ section >
2545
Original file line number Diff line number Diff line change 2020</ nav >
2121
2222< section >
23+ < h1 > string trim CUTSET [STRING]</ h1 >
24+
25+ < p > This command will with trim all the characters in
26+ CUTSET from the (beginning and end) of STRING.</ p >
27+
28+ < h2 > Typical command line</ h2 >
29+
30+ < pre > < code class ="language-shell "> string trim "-" "--people--"
31+ </ code > </ pre >
32+
33+ < p > Would return < code > people</ code > </ p >
34+
35+ < h2 > Piping content</ h2 >
36+
37+ < p > NOTE: To read content from standard input we use the < code > -i -</ code > option.</ p >
38+
39+ < pre > < code class ="language-shell "> echo "--people--" | string -i - trim "-"
40+ </ code > </ pre >
41+
42+ < p > Would return < code > people</ code > </ p >
2343
2444</ section >
2545
Original file line number Diff line number Diff line change 2020</ nav >
2121
2222< section >
23+ < h1 > string trimleft CUTSET [STRING]</ h1 >
24+
25+ < p > This command will with trim all the characters in
26+ CUTSET from left side of STRING.</ p >
27+
28+ < h2 > Typical command line</ h2 >
29+
30+ < pre > < code class ="language-shell "> string trimleft "-" "--people--"
31+ </ code > </ pre >
32+
33+ < p > Would return < code > people--</ code > </ p >
34+
35+ < h2 > Piping content</ h2 >
36+
37+ < p > NOTE: To read content from standard input we use the < code > -i -</ code > option.</ p >
38+
39+ < pre > < code class ="language-shell "> echo "--people--" | string -i - trimleft "-"
40+ </ code > </ pre >
41+
42+ < p > Would return < code > people--</ code > </ p >
2343
2444</ section >
2545
Original file line number Diff line number Diff line change 2020</ nav >
2121
2222< section >
23+ < h1 > string trimprefix PREFIX [STRING]</ h1 >
24+
25+ < p > This command will with trim all PREFIX from the STRING.</ p >
26+
27+ < h2 > Typical command line</ h2 >
28+
29+ < pre > < code class ="language-shell "> string trimprefix "--" "--people--"
30+ </ code > </ pre >
31+
32+ < p > Would return < code > people--</ code > </ p >
33+
34+ < h2 > Piping content</ h2 >
35+
36+ < p > NOTE: To read content from standard input we use the < code > -i -</ code > option.</ p >
37+
38+ < pre > < code class ="language-shell "> echo "--people--" | string -i - trimprefix "--"
39+ </ code > </ pre >
40+
41+ < p > Would return < code > people--</ code > </ p >
2342
2443</ section >
2544
Original file line number Diff line number Diff line change 2020</ nav >
2121
2222< section >
23+ < h1 > string trimright CUTSET [STRING]</ h1 >
24+
25+ < p > This command will with trim all the characters in
26+ CUTSET from right side of the STRING.</ p >
27+
28+ < h2 > Typical command line</ h2 >
29+
30+ < pre > < code class ="language-shell "> string trimright "-" "--people--"
31+ </ code > </ pre >
32+
33+ < p > Would return < code > --people</ code > </ p >
34+
35+ < h2 > Piping content</ h2 >
36+
37+ < p > NOTE: To read content from standard input we use the < code > -i -</ code > option.</ p >
38+
39+ < pre > < code class ="language-shell "> echo "--people--" | string -i - trimright "-"
40+ </ code > </ pre >
41+
42+ < p > Would return < code > --people</ code > </ p >
2343
2444</ section >
2545
Original file line number Diff line number Diff line change 2020</ nav >
2121
2222< section >
23+ < h1 > string trimsuffix SUFFIX [STRING]</ h1 >
24+
25+ < p > This command will with trim all the SUFFIX from the STRING.</ p >
26+
27+ < h2 > Typical command line</ h2 >
28+
29+ < pre > < code class ="language-shell "> string trimsuffix "--" "--people--"
30+ </ code > </ pre >
31+
32+ < p > Would return < code > --people</ code > </ p >
33+
34+ < h2 > Piping content</ h2 >
35+
36+ < p > NOTE: To read content from standard input we use the < code > -i -</ code > option.</ p >
37+
38+ < pre > < code class ="language-shell "> echo "--people--" | string -i - trimsuffix "--"
39+ </ code > </ pre >
40+
41+ < p > Would return < code > --people</ code > </ p >
2342
2443</ section >
2544
You can’t perform that action at this time.
0 commit comments