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 gkittelson 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
Jun 11, 2003
9
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.

 
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