/str

Pipe input to an auto-named resource.

Primary LanguageCMIT LicenseMIT

str is a utility for streaming input to an auto-generated file.

-e, --extension TYPE [Required] Set file extension.
-q, --quiet Suppress filename output.
-h, --help Show help information.
-v, --version Show version number.

Send piped HTML input to .html file.

echo '<!doctype html><html></html>' | str -e html -

Send Makefile input to .txt file.

str -e txt < Makefile