Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 458 Bytes

padleft.md

File metadata and controls

25 lines (15 loc) · 458 Bytes

string padleft [STRING]

This command will with return a version of string padding the left side with the characters provided up to the a maximumn length of the new string.

Typical command line

    string padleft "-" 10 "people"

Would return ------people

Piping content

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

    echo "people" | string -i - padleft "-" 10

Would return ------people