8000 GitHub - schpet/diffwrite: print a diff while you write stdin to a file
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

schpet/diffwrite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

diffwrite

writes stdin to a file, while also printing a diff

# tired, dusty
echo "abc" > results.txt
# (no output)

# amazing, really good
echo "def" | diffwrite results.txt
# --- a/results.txt
# +++ b/results.txt
# @@ -1,1 +1,1 @@
# -abc
# +def
redirection diffwrite
prints nothing, how unixy prints a diff
streams, wow, unix philosophy reads the whole thing into memory
cant even pipe a file into itself like a snake eating its tail
posix live a little

About

print a diff while you write stdin to a file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0