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

What will the following command do?

1117


What is the nmap command?

1179


What is the first character of the output in ls l command?

1210


What is the command to compare two files in unix?

1120


Enlist some filename manipulation commands in unix.

1159


Is command prompt unix?

1152


How do I clear my terminal history?

1152


What is the function of grep command in unix?

1181


What do chown command do?

1184


Write a command to display a file’s contents in various formats?

1209


Is ‘du’ a command? If so, what is its use?

1146


What is the use of tee command?

1156


How do I run a whois command?

1154


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

1312


What is grep short for?

1047