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

What are different types of shell?

0 Answers  


Is bash an operating system?

0 Answers  


What does $1 mean in bash?

0 Answers  


What is k shell?

0 Answers  


What is subshell?

0 Answers  






What is $1 in shell scripting?

0 Answers  


How does shell scripting work?

0 Answers  


What is eval in shell script?

0 Answers  


How do we delete all blank lines in a file?

0 Answers  


What is an inode block?

0 Answers  


How to set an array in linux?

0 Answers  


What is the use of script interpreter in shell scripting?

3 Answers  


Categories