Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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?



I want to read all input to the command from file1 direct all output to file2 and error to file 3, h..

Answer / 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

More Shell Script Interview Questions

write a non recursive shell script that accepts any number of arguments and prints them in the reverse order

3 Answers  


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

0 Answers  


What is the use of "$?" Sign in shell script?

0 Answers  


What does $@ mean bash?

0 Answers  


What is difference between shell and bash scripting?

0 Answers  


What is Linux language details

0 Answers   Quick Heal,


What is the significance of the shebang line in shell scripting?

0 Answers  


What is bash eval?

0 Answers  


What is subshell?

0 Answers  


What is the use of echo in shell script?

0 Answers  


What is the use of .sh file?

0 Answers  


Why is it called a shell?

0 Answers  


Categories