Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save volure/e3d8b6b555d1e4a7b473 to your computer and use it in GitHub Desktop.
Save volure/e3d8b6b555d1e4a7b473 to your computer and use it in GitHub Desktop.
BASH: cat using pipes for the input and the output
#This may be a little misleading because the */cmd/in is input to the pipe, therefore output from cat.
#therefore */cmd/out is output from the pipe, and therefore input from cat.
cat >/tmp/com.thelazycoder.PipesBomb/cmd/in|tee </tmp/com.thelazycoder.PipesBomb/cmd/out
# This can be used with input and output from command line executables as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment