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 is in a script?
What is the fastest scripting language?
Can shell script run on windows?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
What is sh in shell script?
How can the contents of a file inside jar be read without extracting in a shell script?
What is shell company all about?
What are the advantages of shell scripting?
A file has multiple records each having three 30-bit long fields(field1,field2,field3).There is also a lookup file,LOOK_UP.dat.Now, we need to consider only the last ten digits of field1 and lookup the file LOOK_UP.dat. If there a match then field2 and field3 should replaced with corresponding data from the lookup file. otherwise that particular record,for which there is no match, should be stored in a seperate file.
Script S1 (which copies .dat files from one directory1 to another directory2) run continuously. Write Script S2 which kills S1 first, compresses all .dat files in directory1 and directory2 successfully, re-run Script S1 and stops self i.e. S2.
Hi, I want to practise Unix korn shell scripting which i learnt 2 yr bfr. plz suggest software i can use to practise.
What is bash used for?