I want to read all input to the command from file1 direct all output to file2 and error to file 3, how can I achieve this?

Answer Posted / shubham shivaji kale

You can use the following command:

# cat file1 > file2 2> file3

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I save a powershell script?

549


How do I read a .sh file?

522


What is the default shell of solaris?

559


Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?

1707


What happens when you type ls?

553






How can I send a mail with a compressed file as an attachment?

548


how will you find the total disk space used by a specific user?

564


What does $$ mean in shell script?

566


Given a file find the count of lines containing the word "abc".

947


What is the way to do multilevel if-else's in shell scripting?

648


What is sudo command?

544


What is a shell environment?

567


Explain about echo command?

617


What is awk in shell scripting?

543


What is bash eval?

535