Top "Pipe" questions

A pipe is an interprocess connection between file descriptors of two processes.

How to assign an output to a shellscript variable?

How to assign this result to a shell variable? Input: echo '1+1' | bc -l Output: 2 Attempts: (didn't work) #!bin/…

shell pipe bc
Bash variable scope

Please explain to me why the very last echo statement is blank? I expect that XCODE is incremented in the …

bash scope pipe
How to pipe input to a Bash while loop and preserve variables after loop ends

Bash allows to use: cat <(echo "$FILECONTENT") Bash also allow to use: while read i; do echo $i; done &…

bash while-loop stdin pipe
How to make a bash function which can read from standard input?

I have some scripts that work with parameters, they work just fine but i would like them to be able …

bash pipe stdin
Angular 2 pipe that transforms JSON object to pretty-printed JSON

Trying to write an Angular 2 pipe that will take a JSON object string and return it pretty-printed/formatted to display …

javascript json filter angular pipe
How to pipe input to python line by line from linux program?

I want to pipe the output of ps -ef to python line by line. The script I am using is …

python pipe
Example of using named pipes in Linux Bash

Can someone post a simple example of using named pipes in Bash in Linux?

linux bash pipe
How to use `jq` in a shell pipeline?

I can't seem to get jq to behave "normally" in a shell pipeline. For example: $ curl -s https://api.github.…

shell pipe jq
Assigning system command's output to variable

I want to run the system command in an awk script and get its output stored in a variable. I've …

awk pipe
How to pipe stdout while keeping it on screen ? (and not to a output file)

I would like to pipe standard output of a program while keeping it on screen. With a simple example (echo …

bash shell pipe output stdout