Questions tagged [piping]

This tag is appropriate for questions related to taking output from one operation and using it as input to a subsequent operation.

Questions concerning the chaining of command line calls where the output of one call is used as the input for another call should use this tag.

An example of piping would this Linux command:

grep -v bash /etc/passwd | grep -v nologin

The output from the first grep is piped into the second grep as input.

You can read more information about piping at Wikipedia.

351 questions
-1
votes
2 answers

Redirecting stdout to stdin of another program

I've gone through a vast quantity of Google links and questions on here in order to understand how pipping works but I can't seem to grasp the concept of making my stdout redirect to the stdin of my second program. I am attempting to create a…
screwtraffic
  • 21
  • 1
  • 1
  • 4
-1
votes
1 answer

command line string switching

I have a command that generates two possible outputs ('dis' and 'en'). I want to pipe it into another command that switches one to the other ('dis' -> 'en', 'en' -> 'dis'). What's the simplest way to do this?
Hussain
  • 633
  • 1
  • 16
  • 26
-1
votes
1 answer

How to pass cat output as a wget url parameter?

I have a small file containing just a number located at /mnt/1wire/342342342/temperature I need to create a cron to wget http://myserver.com/myurl?temp= (and here goes that line) I believe I should use somewhat cat /myfile | wget…
puff
  • 11
  • 3
-2
votes
1 answer

Java - Process input from .txt and send to anohter .txt

How do I process (using Java) input from one .txt file, then send it to another .txt file? I have heard of piping, but after hours of searching on the internet, I still couldn't find how to do it.
D. Belaev
  • 11
  • 1
-2
votes
2 answers

How do you pipe the output of one file to input of another in Java?

Can someone show me code of something simple that pipes the output from one java file to the input of another in Java? Say you have a file that is called hello.java that just simply outputs "hello". How would I pipe this output from the command line…
user3268401
  • 319
  • 1
  • 7
  • 21
-3
votes
2 answers

Piping and forking in python

I'm trying to write a program in python that writes 2 integers into the pipe via the parent function and then reads those same integers through the child function. The child function is then supposed to print out the product of the two. The problem…
Boby Rosen
  • 13
  • 2
1 2 3
23
24