Re: Two short scripts for Cygwin-Windows interoperation

2007-01-08 Thread Christian Franke
Corinna Vinschen wrote: On Jan 7 21:21, Christian Franke wrote: Corinna Vinschen wrote: http://cygwin.com/acronyms/#PTC http://cygwin.com/acronyms/#SHTDI Come on, what did you expect? ;) Hmm...at least some info whether such a patch would be accepted. (I don't want to do patch

Re: Two short scripts for Cygwin-Windows interoperation

2007-01-08 Thread Corinna Vinschen
On Jan 7 21:21, Christian Franke wrote: > Corinna Vinschen wrote: > >http://cygwin.com/acronyms/#PTC > >http://cygwin.com/acronyms/#SHTDI > > > >Come on, what did you expect? ;) > > Hmm...at least some info whether such a patch would be accepted. > (I don't want to do patches which need many iter

Re: Two short scripts for Cygwin-Windows interoperation

2007-01-07 Thread Larry Hall (Cygwin)
On 01/07/2007, Christian Franke wrote: Corinna Vinschen wrote: > On Jan 4 23:39, Christian Franke wrote: > >> ... >> Thanks for any comment >> > > http://cygwin.com/acronyms/#PTC > http://cygwin.com/acronyms/#SHTDI > > Come on, what did you expect? ;) > > Hmm...at least some info w

Re: Two short scripts for Cygwin-Windows interoperation

2007-01-07 Thread Christian Franke
Corinna Vinschen wrote: On Jan 4 23:39, Christian Franke wrote: ... Thanks for any comment http://cygwin.com/acronyms/#PTC http://cygwin.com/acronyms/#SHTDI Come on, what did you expect? ;) Hmm...at least some info whether such a patch would be accepted. (I don't want to do pat

Re: Two short scripts for Cygwin-Windows interoperation

2007-01-05 Thread Corinna Vinschen
On Jan 4 23:39, Christian Franke wrote: > Igor Peshansky wrote: > >... > >The point I was making was that maybe we could add another option to > >cygpath to retrieve the "My Documents" path... Opinions? > > > > Yes, good point. I would suggest: > > -M, --mydocsoutput 'My Documents' direct

Re: Two short scripts for Cygwin-Windows interoperation

2007-01-04 Thread Andrew DeFaria
Rex Godby wrote: Two tiny Cygwin shell scripts may be of use. Each script has a single active line, which I include here (to try these from the command line, of course replace $1 with your desired argument): 1. To quickly find files and directories in "My Documents" and Desktop (down to a cer

Re: Two short scripts for Cygwin-Windows interoperation

2007-01-04 Thread Christian Franke
Igor Peshansky wrote: ... The point I was making was that maybe we could add another option to cygpath to retrieve the "My Documents" path... Opinions? Yes, good point. I would suggest: -M, --mydocsoutput 'My Documents' directory and as an extension for still missing folders: -F n, -

Re: Two short scripts for Cygwin-Windows interoperation

2007-01-04 Thread Igor Peshansky
On Thu, 4 Jan 2007, Christian Franke wrote: > Igor Peshansky wrote: > > ... > > The Desktop path can be obtained in a general way by "`cygpath -uD`". > > Unfortunately, there is no such ready shortcut for "My Documents", > > though "`cygpath -uH`/$USER/My Documents" should work for most > > instal

Re: Two short scripts for Cygwin-Windows interoperation

2007-01-04 Thread Christian Franke
Igor Peshansky wrote: ... The Desktop path can be obtained in a general way by "`cygpath -uD`". Unfortunately, there is no such ready shortcut for "My Documents", though "`cygpath -uH`/$USER/My Documents" should work for most installations of the English versions of Windows. The function SHG

RE: Two short scripts for Cygwin-Windows interoperation

2007-01-04 Thread Buchbinder, Barry \(NIH/NIAID\) [E]
Rex Godby wrote on Thursday, January 04, 2007 11:54 AM: > Two tiny Cygwin shell scripts may be of use. Each script has a > single active line, which I include here (to try these from the > command line, of course replace $1 with your desired argument): > > 1. To quickly find files and director

Re: Two short scripts for Cygwin-Windows interoperation

2007-01-04 Thread Rex Godby
Thanks for your comments. I'm sure you're right about the -path method being faster, but the resources are not significant for typical setups, and the grep method is immediately adaptable to more sophisticated processing of the list of filenames beyond simple pattern matching. Rex On 04/01/2

Re: Two short scripts for Cygwin-Windows interoperation

2007-01-04 Thread Igor Peshansky
On Thu, 4 Jan 2007, Rex Godby wrote: > Two tiny Cygwin shell scripts may be of use. Each script has a single > active line, which I include here (to try these from the command line, > of course replace $1 with your desired argument): > > 1. To quickly find files and directories in "My Documents"

Two short scripts for Cygwin-Windows interoperation

2007-01-04 Thread Rex Godby
Two tiny Cygwin shell scripts may be of use. Each script has a single active line, which I include here (to try these from the command line, of course replace $1 with your desired argument): 1. To quickly find files and directories in "My Documents" and Desktop (down to a certain depth): find