Skip to content

Commit 5553bc1

Browse files
committed
Quick Save
1 parent 425dbcd commit 5553bc1

File tree

7 files changed

+119
-1
lines changed

7 files changed

+119
-1
lines changed

docs/string/slice.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
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
2626
at START (inclusive) and finishing at END (exclusive).</p>

docs/string/toupper.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,26 @@
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 &quot;the people were freindly&quot;
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 &quot;the people were freindly&quot; | string -i - toupper
40+
</code></pre>
41+
42+
<p>Would return <code>THE PEOPLE WERE FREINDLY</code></p>
2343

2444
</section>
2545

docs/string/trim.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,26 @@
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 &quot;-&quot; &quot;--people--&quot;
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 &quot;--people--&quot; | string -i - trim &quot;-&quot;
40+
</code></pre>
41+
42+
<p>Would return <code>people</code></p>
2343

2444
</section>
2545

docs/string/trimleft.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,26 @@
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 &quot;-&quot; &quot;--people--&quot;
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 &quot;--people--&quot; | string -i - trimleft &quot;-&quot;
40+
</code></pre>
41+
42+
<p>Would return <code>people--</code></p>
2343

2444
</section>
2545

docs/string/trimprefix.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,25 @@
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 &quot;--&quot; &quot;--people--&quot;
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 &quot;--people--&quot; | string -i - trimprefix &quot;--&quot;
39+
</code></pre>
40+
41+
<p>Would return <code>people--</code></p>
2342

2443
</section>
2544

docs/string/trimright.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,26 @@
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 &quot;-&quot; &quot;--people--&quot;
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 &quot;--people--&quot; | string -i - trimright &quot;-&quot;
40+
</code></pre>
41+
42+
<p>Would return <code>--people</code></p>
2343

2444
</section>
2545

docs/string/trimsuffix.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,25 @@
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 &quot;--&quot; &quot;--people--&quot;
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 &quot;--people--&quot; | string -i - trimsuffix &quot;--&quot;
39+
</code></pre>
40+
41+
<p>Would return <code>--people</code></p>
2342

2443
</section>
2544

0 commit comments

Comments
 (0)