Re: cp sucks or do I not know enough?

2006-07-25 Thread Larry Irwin
We converted many production shell scripts to dos/windows batch scripts... (We had to make it possible to run our medical applications under windows...) It was no easy task... We still have no reasonable method to create symbolic links... Things like: GDATE=`date +%Y%m%d` Look like: for /f

Re: cp sucks or do I not know enough?

2006-07-24 Thread Ryan Nowakowski
On Fri, Jul 21, 2006 at 03:47:06PM -0400, Larry Irwin wrote: BlankThe --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 type 'alias' to see any current aliases signature.asc

Re: cp sucks or do I not know enough?

2006-07-24 Thread Ryan Nowakowski
On Sat, Jul 22, 2006 at 12:03:27AM +0530, Anil Gupte wrote: BlankI have read man cp and cp --help (same thing), but I cannot figure out how to shorten this: cp --reply=yes /foo/* . No -u does not work as expected and nor does -f Also, is there an equivalent of xcopy and I mean all the

cp sucks or do I not know enough?

2006-07-21 Thread Anil Gupte
I have read man cp and cp --help (same thing), but I cannot figure out how to shorten this: cp --reply=yes /foo/* . No -u does not work as expected and nor does -f Also, is there an equivalent of xcopy and I mean all the features. For example, in Dos/Win I am used to using, say: xcopy

Re: cp sucks or do I not know enough?

2006-07-21 Thread Jason Martens
Anil Gupte wrote: I have read man cp and cp --help (same thing), but I cannot figure out how to shorten this: cp --reply=yes /foo/* . I think you want -i No -u does not work as expected and nor does -f Also, is there an equivalent of xcopy and I mean all the features. For example, in

RE: cp sucks or do I not know enough?

2006-07-21 Thread Jean-Sebastien Pilon
$ ls -A1p |grep -v / # I think this would actually match cp's behavior Here is options used -A, --almost-all do not list implied . and .. -1 list one file per line -p, --file-typeappend indicator (one of /=@|) to entries We grep / to remove

Re: cp sucks or do I not know enough?

2006-07-21 Thread Larry Irwin
either of the 2 recursive copies shown above cd /foo find. -depth -print - Original Message - From: Anil Gupte To: debian-user@lists.debian.org Sent: Friday, July 21, 2006 2:33 PM Subject: cp sucks or do I not know enough? I have read man cp and cp --help (sam