linux - Command to copy code from one file to another -
I would like to know if there is any command to copy files from file A. Or SVN for my project, so I would like to know if it is possible to synchronize these 2 files.
It would be great to know about a command, which strips the lines from the file A to A, which is not present in the file.
Note: Developers of my client will directly code on the site, from where I will copy the code from my local site to my site. So I can not use the SCP or MV command to replicate my local copy on the live site.
I think the bottom
or you can use Assume that we have a file called "version 1" then you copy it to another location , And make some edits call this "version 2a" then copy it to another location, and make a few different edits Call this "version 2b". Now, the easy way to merge the changes of 2A to 2B is to find the difference between 1 and 2A, and apply it to 2b. fgrep -vxf file2 file1 & Gt; & Gt; File 2
diff -u version 1 version 2a & gt; Diff2a cd ../path/to/2b Patch-P 0 & lt; ../ back / to / diff2a
Comments
Post a Comment