Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 379 Bytes

trimprefix.md

File metadata and controls

24 lines (13 loc) · 379 Bytes

string trimprefix PREFIX [STRING]

This command will with trim all PREFIX from the STRING.

Typical command line

    string trimprefix "--" "--people--"

Would return people--

Piping content

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

    echo "--people--" | string -i - trimprefix "--"

Would return people--