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

What does $@ mean in shell?

964


write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.

2705


What's the difference between scripting and coding?

1091


What is awk in shell script?

1172


How would you compare the strings in a shell script?

930


Explain about login shell?

1054


How to find duplicate record in file using shell script?

1321


c program to display the information of given file similar to givan by the unix or linux command ls -l

2148


How to find all the files modified in less than 3 days and save the record in a text file?

1006


How does ls command work?

972


Explain about sourcing commands?

1032


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

2423


What is difference between shell and bash scripting?

936


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

988


What is the syntax of "nested if statement" in shell scripting?

1039