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 does $@ mean in shell?
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.
What's the difference between scripting and coding?
What is awk in shell script?
How would you compare the strings in a shell script?
Explain about login shell?
How to find duplicate record in file using shell script?
c program to display the information of given file similar to givan by the unix or linux command ls -l
How to find all the files modified in less than 3 days and save the record in a text file?
How does ls command work?
Explain about sourcing commands?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
What is difference between shell and bash scripting?
What is the use of "$#" in shell scripting?
What is the syntax of "nested if statement" in shell scripting?