User Tools

Site Tools


linux:bash

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:bash [2026/05/15 13:28] โ€“ [REDIRECTS vs PIPES] v1ctorlinux:bash [2026/05/15 13:30] (current) โ€“ [REDIRECTS vs PIPES] v1ctor
Line 78: Line 78:
 The core difference: redirects connect a stream to a file (a redirect always has a file on one side). Pipes connect one process to another process. The core difference: redirects connect a stream to a file (a redirect always has a file on one side). Pipes connect one process to another process.
  
 +
 +Pipes: process โ†’ process:
 +<code bash>
 +cmd1 | cmd2           # Takes cmd1's stdout and feeds it directly into cmd2's stdin. No file involved
 +ls | grep ".txt"      # ls output becomes grep's input
 +</code>
 ==== STANDARD INPUT and OUTPUT ==== ==== STANDARD INPUT and OUTPUT ====
  
linux/bash.1778851703.txt.gz ยท Last modified: by v1ctor