How can the output be redirected to some other action process in place showing it in the screen?

- Solaris allows the user to redirect the output of an operation to a file or something else if required. For ex.

$ date > sample.file
$
The above command upon execution would cause the output of the date command to redirect to a new file sample.file.

- Another type of requirement is that the user might want to use the output of a particular operation to act as the input of another operation. This can be achieved in Solaris by making use of the pipe (|). A set of commands which are tied up together like this are called pipelines.

An example depicting the use of the pipes:
$ date | lp
request id is jetprint-46

No comments:

Post a Comment

The advantages of Outsourcing Web Development Services

In the present digital world, acquiring a solid web presence is essential for companies to flourish. A well designed site is much much more ...