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...

How to add content of one file into another file at the beginning

Answer Posted / green

(To insert file2 content to file1; then the command is)
vi file1
(in command mode)
:0 r! cat file2 (press enter)

( file2 content is inserted to file1 )

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I use grep to search for a file?

1106


How do you grep recursively?

1157


Explain ‘system calls’ with respect to unix commands?

1158


Can you enlist some commonly used network commands?

1158


Can you explain a little bit about command substitution?

1164


Which command is used to copy files?

1252


Which command can you use to find the currently running process in unix server?

1169


Which command is used to find whether the system is 32 bit or 64 bit?

1201


What is the use of the tee command?

1154


What is the size of time_t?

1272


What does the command ' $who | sort –logfile > newfile' do?

1326


Name the unix command to find how many days the server has been up.

1213


What does sed command do in unix?

1250


What is “chmod” command?

1244


What is the use of tee command?

1239