On Tue, 07 Jan 2003 Shantanu  Kumar wrote :

Hi,

Whenever I use the 'cp' command for an exiting target-file, it comes back to me to confirm whether I really want to overwrite an existing file. I want to override this behaviour in one of my bash scripts. How do we do that? Specially, without setting any global environment variables? The reason I can't use (echo "y" | cp ...blah... ...blah...) is that i am issuing a recursive (cp -r) command and I can't know in advance how many files it is going to encounter.

TIA,
Shantanu






-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to