The --reply=yes is not needed if you are using the binary executable
"cp"
If your "cp" is an alias, other issues arise... check ~/.bash*,
/etc/bash* and /etc/profile
These samples work with "cp" and not the bash alias to "cp"...
#Copy a bunch of files to current location
cp /foo/* .
#Recursively copy files and directories and, to the extent possible,
maintain permissions and ownership
cd /foo
cp -Rp * /destinationdirectory
-or-
cd /foo
find . -depth -print | cpio -pmud /destinationdirectory
#Provide a list of files that would be copied via either of the 2 recursive
copies shown above
cd /foo
find . -depth -print
|
- RE: cp sucks or do I not know enough? Jean-Sebastien Pilon
- Re: cp sucks or do I not know enough? Larry Irwin
- Re: cp sucks or do I not know enough? Ryan Nowakowski
- Re: cp sucks or do I not know enough? Ryan Nowakowski
- Re: cp sucks or do I not know enough? Larry Irwin