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 to set an array in linux?

1209


Write a shell script to get current date, time, user name and current working directory.

1081


How do I open the shell in cmd?

1121


What is bash shell command?

999


Why is the use of shell script?

973


What is shell scripting?

1044


What is the difference between break and continue commands?

1089


What is in a script?

1012


What is shell and terminal?

990


What is the difference between bash and shell?

1113


what is info area how many types?

2755


What is the first line in every perl script called?

1039


What will happen to my current process when I execute a command using exec?

1040


What is shift command in shell script?

1023


I want to connect to a remote server and execute some commands, how can I achieve this?

1017