Inside the ‘stream-redirection’ folder there is a program called ‘program’. When you run this it will output to stdout and stderr.

What is the stdout output?

I have tried ./program, but it did not work.

It just showed the following output

  • 1
    Welcome to Ask Ubuntu! Please edit your question to explain: What is the stream-redirection folder and program? I don’t have such a folder on my Ubuntu (find / -type d -name stream-redirection gives no result). – Melebius Nov 7 '18 at 8:07

I did

./program | cat 1>output.txt | vim output.txt

That gave me a token... but the same approach doesn't work for std error...I'm stuck on the next bit.

| improve this answer | |
  • just got it to work! – Brad Nov 7 '18 at 5:35
  • ./program 2>test | vim test – Brad Nov 7 '18 at 5:35
  • 1
    Welcome to Ask Ubuntu! Please edit your answer to post a correction, don’t use comments. Could you explain what does your command do and how it solves the question? – Melebius Nov 7 '18 at 8:04
  • thanks, I think it was showing the whole thing stdout and stderr if we use ./program. But my lack of knowledge could not figure that out. – CyberMad Nov 7 '18 at 13:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.