Golden Codes - armanexplorer planet

Practical code snippets for Django, Python, Bash, Git and All!

View on GitHub

Example of duplicating some parts of output stream:

echo 'this is the first line\nthis is second output' | tee >(head -n 1) | grep 'second'