This is the mail archive of the cygwin-talk@cygwin.com mailing list for the cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Avoiding the need for Windows Explorer


On Mon, 07 Feb 2005 01:38:37 -0800,  wrote:

>zzapper wrote:
>
>> cd /d/backup/oldsites/something/site/
>> 
>> at the prompt type
>> 
>> S=`pwd`
>> 
>> go to the destination directory
>> 
>> cd /c/inetpub/wwwdev/www.something.co.uk/website
>> 
>> you can then type something like
>> 
>> cp $S/*.php .
>
>I utterly fail to see the point to this.  Why not just do it all one on
>cp command line?  You're still typing or using tab completion for two
>'cd' commands, when you could just do
>
>cp <type or use tab completion for location 1>/*.php <type or use tab
>completion for location 2>
>
>You're already doing the <type or use tab completion> part for both
>'cd's so why involve all the extra steps?
>
>Brian
Brian,
Ah I failed to mention that I have markers for these directories, in fact scripts which find the
directories automatically.

zzapper (vim, cygwin, wiki & zsh)
--

vim -c ":%s%s*%CyrnfrTfcbafbeROenzSZbbyranne%|:%s)[R-T]) )Ig|:norm G1VGg?"

http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim Tips


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]