mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-27 08:43:09 -03:00
We no longer have two doc systems, move sphinx_doc_src back to doc_src
This commit is contained in:
39
doc_src/cmds/string-trim.rst
Normal file
39
doc_src/cmds/string-trim.rst
Normal file
@@ -0,0 +1,39 @@
|
||||
string-trim - remove trailing whitespace
|
||||
========================================
|
||||
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
.. BEGIN SYNOPSIS
|
||||
|
||||
::
|
||||
|
||||
string trim [(-l | --left)] [(-r | --right)] [(-c | --chars CHARS)] [(-q | --quiet)] [STRING...]
|
||||
|
||||
.. END SYNOPSIS
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
.. BEGIN DESCRIPTION
|
||||
|
||||
``string trim`` removes leading and trailing whitespace from each STRING. If ``-l`` or ``--left`` is given, only leading whitespace is removed. If ``-r`` or ``--right`` is given, only trailing whitespace is trimmed. The ``-c`` or ``--chars`` switch causes the characters in CHARS to be removed instead of whitespace. Exit status: 0 if at least one character was trimmed, or 1 otherwise.
|
||||
|
||||
.. END DESCRIPTION
|
||||
|
||||
Examples
|
||||
--------
|
||||
|
||||
.. BEGIN EXAMPLES
|
||||
|
||||
::
|
||||
|
||||
>_ string trim ' abc '
|
||||
abc
|
||||
|
||||
>_ string trim --right --chars=yz xyzzy zany
|
||||
x
|
||||
zan
|
||||
|
||||
|
||||
.. END EXAMPLES
|
||||
Reference in New Issue
Block a user