Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

editing files contents

Status
Not open for further replies.

navarro1

Technical User
Joined
Jun 11, 2003
Messages
9
Location
US
How can I transfer the contents of file1 to file2 and the contents of file2 to file1 ?

ibis

 
Like this...
Code:
   mv file1 file.tmp
   mv file2 file1
   mv file.tmp file2
Hope this helps.

 
That flips file names, but do you want to merge the files?
 
It did work perfect. Thanks a bunch
 
I thougth it would be easier to flap names, but I didn't want to merge files.
Thanks for your reply
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top