Shell pipelines (|)
Në shqip: Tubacionet në shell (|)
ShpjegimiSQ
Simboli | lidh dy komanda: dalja e së parës bëhet hyrja e së dytës. Kështu ndërton „linja prodhimi“ nga komanda të vogla: „cat log | grep ERROR | wc -l“ numëron gabimet.
EnglishEN
The | symbol connects two commands: the first one's output becomes the second one's input. That's how you build “assembly lines” from small tools: “cat log | grep ERROR | wc -l” counts errors.
Si ta mendosh
Si një linjë montimi: çdo punëtor bën një gjë dhe ia kalon tjetrit.
Lexoje në anglisht
Like an assembly line: each worker does one job and passes it on.
Shembull kodibash
cat app.log | grep ERROR | wc -l
ps aux | sort -k4 -nr | head -5