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
how to get part of string variable with echo command only?
Is it possible to substitute "ls" command in the place of "echo" command?
How to get the last line from a file using just the terminal?
What is the difference between grep and egrep?
What is awk in shell scripting?
What are filters explain sort with all the options available?
How can the contents of a file inside jar be read without extracting in a shell script?
What does $0 mean in shell script?
How to check if a directory exists?
How do I open the shell prompt?
Print the 10th line without using tail and head command.
What is a file basename?
What is the default shell of solaris?
Why do we use shell scripting?
write a shell script to check the failed jobs?