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?



I want to read all input to the command from file1 direct all output to file2 and error to file 3, h..

Answer / 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

More Shell Script Interview Questions

whta is the use of "exec" command?

1 Answers  


Write down the syntax of "for " loop

0 Answers  


what is the difference between cmp and diff commands

2 Answers   Amazon, CTS,


I Forgot My Windows Vista Password! How Can I Find My Windows Lost Password?

1 Answers  


What are the advantages of shell script?

0 Answers  


What does debug script mean?

0 Answers  


Which is best institute for testing tool?

0 Answers  


In a single command how do you run the previous command in the command prompt.

5 Answers  


How would you replace the n character in a file with some xyz?

7 Answers  


What is path in shell script?

0 Answers  


Where is bash history?

0 Answers  


What is the use of "test" command?

2 Answers  


Categories