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 down the syntax for all the loops in shell scripting.

0 Answers  


Which is best institute for testing tool?

0 Answers  


What is the command for " how many shell is running in your system or how many shell supported by your system " ?.

3 Answers  


How do I start a shell script?

0 Answers  


Write a shell script in Linux to shift all characters in a file forward by five characters. (Thus “a” becomes “f’”).

2 Answers   Ignou, Tripura Info,


What is a boot block?

0 Answers  


What are the types of script?

0 Answers  


How to customise the other shell?

2 Answers   Quest,


How to get script name inside a script?

0 Answers  


What can scripts do?

0 Answers  


How will I insert a line "abcdef" at every 100th line of a file?

2 Answers  


What is the way to do multilevel if-else's in shell scripting?

0 Answers  


Categories