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

What are the advantages of using shell scripts?

0 Answers  


What is the significance of $#?

0 Answers  


What is the use of "$#" in shell scripting?

0 Answers  


Why is shell scripting important?

0 Answers  


How to get the last line from a file using just the terminal?

0 Answers  


How important is shell scripting?

0 Answers  


How to print some text on to the screen?

2 Answers  


How to print all the arguments provided to the script?

0 Answers  


Why is the use of shell script?

0 Answers  


What does chmod do?

0 Answers  


What is scripting autism?

0 Answers  


write a shell script to check whether all the directories in the path exist has read and write permission

1 Answers  


Categories