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
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
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
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
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
$ 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
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
7 matches
Mail list logo