in reply to diff function

So, i thought i wil write a script for this action. Any suggestions plz? thank you.
Don't. Overcome "argument too long error" by giving unix cp command only two arguments, source file and destinationdirectory

Replies are listed 'Best First'.
Re^2: diff function
by parv (Parson) on Apr 01, 2009 at 05:26 UTC

    Use xargs(1) -- along with find(1), or anything else to generate file list -- to control the number of arguments given to cp(1) by using "replacement string" related option(s).

    There is also a program called unison which will sync up one directory to another, in both directions if you like, while keeping any existing files. It is currrently being maintained but lacks an active development.