Patch
In general , patch means a piece of cloth or other material used to mend or strengthen a torn or weak point. In networks , it means to apply the modifications to the existing file. its a kind of diff between existing and modified one.
"diff" command is used to generate patch file for directories in NS2. Clear Explanation about the patch creation is specified in the article named "What's the diff?".
dIff is used to evaluate the difference between the two files.
dIff is used to evaluate the difference between the two files.
patch for a directory structure command:
diff -rau "old_directory" "modified_directory" > "patch_file"If you taking files difference in to consideration then remove r from the command
r: recursive mode
a: All files as text
u: Output NUM (default 3) lines of unified context.
diff -au "old_dir" "modified_dir" > "patch_file"
For more details please go to CLICK HERE
For more details please go to CLICK HERE
No comments:
Post a Comment