What does the command foo < bar | foobar do? - ProProfs Discuss
Advertisement

What does the command foo < bar | foobar do?

What does the command foo < bar | foobar do?

Change Image    Delete

Asked by Brayden, Last updated: Dec 18, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

John Smith

John Smith

John Smith
John Smith

Answered Sep 08, 2016

Foo reads bar as stdin, pipes output to foobar-common redirection operators command >file : redirects standard output of command into the file command>>file : append the standard output of command into the file commandfile : redirects the standard error into the file and pipe (|) is used to combine the command, in piping outout of first command goes as input to the second command. answer a is correct because foo command takes input from the bar file and sends the standard output to foobar command.
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.