Is it possible to copy a file from anywhere to My Documents w ith bash cp?
Vince Hoffman
Vince.Hoffman@uk.circle.com
Wed Oct 23 10:50:00 GMT 2002
depending on where your My Documents is (for this example I'll use
C:\Documents and Settings\Frank Lane\My Documents\)
cp <filename> /cygdrive/c/Documents\ and\ Settings/Frank\ Lane/My\
Documents/
or
cp <filename> "/cygdrive/c/Documents and Settings/Frank Lane/My Documents/"]
you can use the util cygpath to find out the cygwin syntax of a windows path
althopugh spaces still need to be escaped (put a \ before them) or else
enclose the whole path in inverted commas. Bash's tab autocomplete will
escape spaces for you which is nice.
> -----Original Message-----
> From: Lane, Frank L [mailto:frank.l.lane@boeing.com]
> Sent: 23 October 2002 17:51
> To: cygwin
> Subject: Is it possible to copy a file from anywhere to My Documents
> with bash cp?
>
>
> How can I copy a file from a directory to My Documents on a
> bash command
> line? I played with it and can't hack the syntax.
>
> Thanks,
> Frank
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list