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

how to search for vowels a,e,i,o,u appearing in the same sequence in a file

4 Answers   Amazon,


Is shell scripting a language?

0 Answers  


What is the need of including script interpreter in your shell script?

2 Answers  


In which variable prompt value is stored?

2 Answers  


What is the use of .sh file?

0 Answers  






Which scripting language is best for automation?

0 Answers  


defination of mapfile in winrunner?

0 Answers  


What exactly is a shell?

0 Answers  


determine the output of the following command: echo ${new:-variable}

0 Answers  


How will you list only the empty lines in a file (using grep)?

4 Answers   ANZ,


What does $0 mean in shell script?

0 Answers  


is this growing field and what is average package in this?

0 Answers  


Categories