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 / shubham shivaji kale
You can use the following command:
# cat file1 > file2 2> file3
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the different variables present in linux shell?
What is the best shell scripting language?
Dear All, Can anybody tell me how to predefind no. of selected rows from a text file.
How can I set the default rwx permission to all users on every file which is created in the current shell?
How to check if the previous command was run successfully?
What is scripting autism?
How to set an array in linux?
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 ?
How do I save a powershell script?
What is egrep?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
How do I start a shell script?