Answer the question
In order to leave comments, you need to log in
What is the vertical bar in UNIX Shell for?
What is the pipe character used for in a UNIX shell? I come across examples like nasm -s -f obj myfile.asm | more
,
fetching search results, (launching several programs in a row?) and other situations. Maybe it is googled, but I can only find about bitwise OR. I know this, but this is not an exhaustive answer, so please list the use cases with examples.
Answer the question
In order to leave comments, you need to log in
It's a pipeline - output redirection.
That is, the result of the output of one command is passed to the input of another command.
In this situation, more is a program that outputs text page by page. It would be possible to feed the file to her, but here the output of the nasm -s -f obj myfile.asm command is fed, which apparently takes up several pages.
Read more about I/O redirects on Google.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question