Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 395 Bytes

trim.md

File metadata and controls

24 lines (14 loc) · 395 Bytes

string trim CUTSET [STRING]

This command will with trim all the characters in CUTSET from the (beginning and end) of STRING.

Typical command line

    string trim "-" "--people--"

Would return people

Piping content

NOTE: To read content from standard input we use the -i - option.

    echo "--people--" | string -i - trim "-"

Would return people