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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How are shells born?

1019


What is an inode block?

1111


How do I run a .sh file on mac?

1250


What is mac default shell?

1143


How do I edit a .sh file?

1205


What is shell geeksforgeeks?

1172


How do I read a .sh file?

1175


Is it possible to substitute "ls" command in the place of "echo" command?

1102


How do you create a shortcut in linux?

1259


Is shell and terminal the same?

1110


How do I start a shell script?

1284


What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

1114


What are the different commands available to check the disk usage?

1054


What is scripting autism?

1260


Calculate a real number calculation directly from the terminal and not any shell script.

1286