dorian-write
Write stdin to one or more files.
Install
gem install dorian-writeAlso included in the aggregate gem:
gem install dorianUsage
write [options] file [file ...]Run write -h for generated option details and write -v for the installed version.
Notes
- By default replaces file content. Use
--append/-aor--prepend/-pto keep existing content.
Examples
Replace a file with filtered content
grep important notes.txt | write important.txtAppend stdin
date | write --append log.txt