O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Connecting multiple processes using pipe

In Unix, it's common to pipe a set of commands together using the | symbol to create a pipeline of activities, where the input for the command is the output from the previous command. This way, we can process the input to get the desired output. 

A common scenario is when you want to search for something or some pattern in the log files or for an occurrence of some text in the log file. In such scenarios, you can create a pipeline, wherein you pass the required log file data via a series of commands, namely: cat, grep, wc -l, and so on. 

In this recipe, we will make use of the Iris dataset from the UCI machine learning repository available at https://archive.ics.uci.edu/ml/datasets/Iris to create a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required