Download the pre-compiled binaries from the Release! page and copy them
to the desired location.
:books: Guide
After installation simply run sttr command.
bash
// For interactive menu
sttr
// Provide your input
// Press two enter to open operation menu
// Press `/` to filter various operations.
// Can also press UP-Down arrows select various operations.
count-lines - Count the number of lines in your text
reverse-lines - Reverse lines
shuffle-lines - Shuffle lines randomly
sort-lines - Sort lines alphabetically
unique-lines - Get unique lines from list
number-lines - Prepend consecutive number to each line
Spaces
remove-spaces - Remove all spaces + new lines
remove-newlines - Remove all new lines
Count
count-chars - Find the length of your text (including spaces)
count-lines - Count the number of lines in your text
count-words - Count the number of words in your text
RGB/Hex
hex-rgb - Convert a #hex-color code to RGB
hex-encode - Encode your text Hex
hex-decode - Convert Hexadecimal to String
JSON
json - Format your text as JSON
json-escape - JSON Escape
json-unescape - JSON Unescape
json-yaml - Convert JSON to YAML text
json-msgpack - Convert JSON to MSGPACK
msgpack-json - Convert MSGPACK to JSON
YAML
yaml-json - Convert YAML to JSON text
Markdown
markdown-html - Convert Markdown to HTML
Extract
extract-emails - Extract emails from given text
extract-ip - Extract IPv4 and IPv6 from your text
extract-urls - Extract URLs your text ( we don't do ping check )
Other
escape-quotes - escape single and double quotes from your text
completion - generate the autocompletion script for the specified shell
interactive - Use sttr in interactive mode
version - Print the version of sttr
zeropad - Pad a number with zeros
and adding more...
Featured On
These are the few locations where sttr was highlighted, many thanks to all of you.
Please feel free to add any blogs/videos you may have made that discuss sttr to the list.