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
What is the difference between scripting and coding?
Write a command sequence to find the count of each word?
What is bourne shell scripting?
Write down the syntax of "for " loop
When should shell programming/scripting not be used?
What is a shell? · Types of shell · what is shell scripting?
What is shell environment?
What is awk in shell scripting?
How will you connect to a database server from linux?
Is shell scripting difficult?
What language is shell scripting?
What is bash command used for?
What lives in a shell?
one folder contains lot of students name but I want to fetch hello with every student name individually using shell script
i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..