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 different variables present in linux shell?

0 Answers  


What is the best shell scripting language?

0 Answers  


Dear All, Can anybody tell me how to predefind no. of selected rows from a text file.

1 Answers   MGL,


How can I set the default rwx permission to all users on every file which is created in the current shell?

0 Answers  


How to check if the previous command was run successfully?

0 Answers  


What is scripting autism?

0 Answers  


How to set an array in linux?

0 Answers  


Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?

0 Answers   TCS,


How do I save a powershell script?

0 Answers  


What is egrep?

2 Answers  


Determine the output of the following command: [ -z “” ] && echo 0 || echo 1

0 Answers  


How do I start a shell script?

0 Answers  


Categories